From: Andreas R. <a.r...@gm...> - 2009-12-06 22:07:22
|
Matthias Trute <mt...@we...> writes: > Hi, > >> ,---- >> | Most of the words are written in forth itself, but are precompiled >> | into the assembler syntax. This solves the chicken-and-egg problem: >> | how to compile the compiler words. >> `---- >> >> Where can I find the (forth) source code for the compiler, > > There is none, I outlined the code with the stack effects on paper&pencil > basis and wrote the assembler sources directly without an immediate > tool. > OK, it seems that I've taken "written in forth itself" too literally :-). > Did you look at the http://amforth.sourceforge.net/words/ pages? > Yes, I'm still trying to get a grip of Forth in general, and amforth in particuliar (I've only used forth for a university class several years ago, and am mostly a Scheme hacker these days). >> and the precompiler that generates the assembly? I did some searching >> in the source tree, to no avail. >> > Michael writes a forth2assembler tool named g4 and publishes > it at http://www.forth-ev.de/repos/g4/ His tool is very well suited for > most use cases (and with known limitations). > Nice! I'm playing with the idea of using amforth on an ATmega8. With just 8K of RAM, it might make sense to move the compiler onto the PC, and just have the inner interpreter on the microcontroller -- or is that just crazytalk? Regards, Rotty -- Andreas Rottmann -- <http://rotty.yi.org/> |