4 ms·
I recently took up the challenge of porting JonesForth to x86-64. It was one of the most rewarding personal challenges in a very long time. For one, I was abl
by mlang23 6y ago
I recently took up the challenge of porting JonesForth to x86-64. It was one of the most rewarding personal challenges in a very long time. For one, I was able to write x86-64 without needing to whip up a complete application. And learning Forth during the process was even more fun.
https://github.com/mlang/jonesforth https://github.com/mlang/jonesforth
And yes, I know there is also jonesforth64. However, doing the porting myself was totally worth it.
- MaxBarraclough 6y agoAnd in the true Forth spirit, the point was to implement Forth, not to implement something in Forth.
- mlang23 6y agoAlmost right. At the end of the exercise, I at least wrote TIME&DATE, a word to get the current system time. And I implemented DO..LOOP which appeared to be quite tricky. But yes, I agree. Getting the system to run was much more interesting then actually using it :-)
- deleted 6y ago[deleted]
- 0xdeadbeefbabe 6y agoDid you run into memory protection?
- mlang23 6y agoNo. Jonesforth is originally written for i386 Linux. Porting to x86-64 didn't really change a lot about the environment.