@akkartik just experimenting for now, my goal is to understand better different moving parts of a programming language. The idea would be to get a full bootstrap interpreter going and then learning to generate x86_64 or ARM assembly after I got a self hosted compiler from it.
Additionally I want to be able to freely interop with C or ASM code and have ways of allocating and processing arrays for better performance.
A stack based language can actually be translated much easier to assembly it seems since I could just use the SP but this is also an opportunity for me to up my lisp-fu game.
Stephen Pelc wrote a very quick drive-through of the structure of VFX, but there's not much to glean from here: http://www.euroforth.org/ef00/pelc00a.pdf
and Anton Ertl has done some work on optimising threaded code - his papers are all at http://www.complang.tuwien.ac.at/projects/forth.html (or follow links from there to his other bits)
occasionally, efforts at optimising Forth compilers have escaped into the public domain - for example Lars Kreuger's flk, which is available at https://www.complang.tuwien.ac.at/forth/ but very dusty and unmaintained, or Marcel Hendrix's mxForth http://home.iae.nl/users/mhx/mxforth.html which is even dustier
for optimising compilation of stack based languages in general, the Self papers and the work on Java JITs are probably the richest seams to mine
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!