Remix.run Logo
jhbadger 5 days ago

"Compiled languages can be used externally"

I realize that 8MB of RAM seems absurdly small to modern audiences, but I can assure you that I ran early versions of Turbo Pascal and compiled fine with 64K.

ikskuh 5 days ago | parent | next [-]

Creator here!

I know, i know! This is what makes me a bit sad. I dont know of any modern compiler i can use on the platform, as most hobby compilers target aarch64 or 32/64 bit x86.

What i need tho is a compiler that targets Arm/Thumb-2.

My research tells me that this confines me to: - A non-complete patch series for TCC (maybe) - LLVM - GCC

As twonof them obviously won't run on 8 MB, my options are stripped down to:

- Evaluate CBE and write my own backend and add 32 bit support - Write my own compiler + backend

Both options don't sound viable before the release as they would increase the scope greatly.

aa-jv 5 days ago | parent [-]

Considered the effort required to add Lua support to the platform? At least eLua would fit and probably provide a great environment for onboard development (i.e. non-crosscompiling...)

ikskuh 5 days ago | parent [-]

Lua is planned! It's an interpreted language with a lightweight compiler which is one of the next things on the "large scale" todo list!

izacus 5 days ago | parent | prev [-]

Yeah, but Turbo Pascal was also a small language with limited size of binaries (remember overlays?).