3 ms·
Can't you define FORTH (or a subset of it) for some architectures purely in assembly, then use those functions like normal? I remember some file floating around
by rackjack 5y ago
Can't you define FORTH (or a subset of it) for some architectures purely in assembly, then use those functions like normal? I remember some file floating around on GitHub that showed how to do that.
Anyway, amazing work as always!
- thechao 5y agoYes; this Lisp is entirely in machine code and smaller than SectorForth.
- int_19h 5y agoThat's how Forth is normally implemented (and what makes it so handy on a new platform that doesn't have any dev tools yet). Although there's a further difference between implementations that rely on an existing assembler to implement the native bits, and those that roll their own in a way that allows them to cross-compile themselves. As for the file, I suspect that you're referring to JonesForth, which is a heavily commented implementation of the first variety: https://github.com/nornagon/jonesforth/blob/master/jonesforth.S https://github.com/nornagon/jonesforth/blob/master/jonesfort...