Re:Jonesforth – A sometimes minimal FORTH compiler and tutor...
by paulsmith on Tuesday September 08, 2015 @04:43PM
(#10188118)
How hard would it be to port this to x86_64? Offhand I'm guessing the alignment, register names (eXX -> rXX), changing any relative offset from 4 to 8, and syscall convention. Any other hidden landmines?
[ Parent
| on HN ]
Re:Jonesforth – A sometimes minimal FORTH compiler and tutor...
by rwmj on Tuesday September 08, 2015 @04:50PM
(#10188150)
Kind of a bunch of work, but at the same time it'd be an interesting learning exercise. There have been ports to quite different architectures, such as PPC and ARM, and one you can run on baremetal RPi:
http://www.lshift.net/blog/2007/10/04/jonesforth-ported-to-p... https://github.com/M2IHP13-admin/JonesForth-arm https://github.com/phf/forth https://github.com/organix/pijFORTHos