3 ms·
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 sysc
by paulsmith 11y ago
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?
- rwmj 11y agoKind 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-powerpc-and-mac-os-x/ http://www.lshift.net/blog/2007/10/04/jonesforth-ported-to-p... https://github.com/M2IHP13-admin/JonesForth-arm https://github.com/M2IHP13-admin/JonesForth-arm https://github.com/phf/forth https://github.com/phf/forth https://github.com/organix/pijFORTHos https://github.com/organix/pijFORTHos