4 ms·
For the C compiler that I developed to replace the GNU Mes compiler in the live-bootstrap project, I also used a Forth like language that uses two stack. One st
by fjfaase 1mo ago
For the C compiler that I developed to replace the GNU Mes compiler in the live-bootstrap project, I also used a Forth like language that uses two stack. One stack for parameters and return values and one for the return addresses and local variables. The Forth like language is transpiled in assembly and through some steps made into an ELF file. The targets are: x86, x86_46, and arm64. Work on supporting riscv64 has started, but is currently on hold due to other responsibilities. If there is anyone willing to complete it, I do have some small funds as a bonus.
- romforth 1mo agohttps://github.com/romforth/romforth https://github.com/romforth/romforth already has a port to RISV-V for both 32 and 64 bit, (among many others). So if you don't mind lowering your language implementation to romforth (or even rewriting your compiler to directly generate it), you should be able to use it "for free", no funds required ;)