Scot W. Stevenson
Scot W. Stevenson
Sorry, I just remembered that Mecrisp-Forth has already been (experimentally) ported to RISC-V assembler, see https://www.forth-ev.de/article.php/20180306213428204 for the announcement (in German) and https://sourceforge.net/projects/mecrisp/files/ for the actual files.
I would like to second the request for more examples. For instance, I'm a bit hazy on how NewWithConfig() is supposed to work, because we need to access the readline...
@abiosoft Thank you! In case it helps, the long version of the code is https://github.com/scotws/angua-go/blob/ttyswitch/cli/cli.go (very alpha, though, I'm in the middle of rebuilding the basic code structure).
This is also a problem if you built the toolchain with `riscv64-unknown-linux-gnu-gcc` - it will fail the same way. You have to change line 22 to `-host=riscv64-unknown-linux-gnu`. It might be...
@CodeSwimBikeRunner To expand on what @jim-wilson wrote: You can use the GCC compiler suite in various pre-built versions the write the assembler code in a file that ends with .s...
I would like to second this.