Enquirer <nobody@nowhere.invalid> wrote: GCC, the GNU Compiler Collection currently has...question is, why no GCCfront-end for FORTH? How hard can it be? OK, as a gcc..., it's technically very difficult. gcc does use the stack, but it...ends to generate efficient code for Forth would be hard. Secondly, it's... we already have gforth. Thirdly, Forth is an interactive language, whereas ...
... easily imagine someone creating a GCCfront-end for Forth. The ... would be, essentially, a Forth interpreter that emitted data declarations that ... magical about this-- a GCCfrontend can freely parse anything ... could (again) have a small Forth embedded. Note that 4tH already implements a way to compile Forth code as a static program,... 4tH way to create a GCC frontend, just never found the ...
...question is, why no GCCfront-end for FORTH? How hard can it be? Very. Forth is compiles according to an entirely...is no requirement that a GCCfrontend depend on a BNF ...end would be, essentially, a Forth interpreter that emitted data declarations that ... magical about this-- a GCCfrontend can freely parse anything ... is the output of the frontend, not the parsing strategy. ...
... the GNU Compiler Collection currently has frontends for: C C++ Objective-C ...Macro Assembly Under develobment are GCCfrontends for: BASIC (FreeBASIC project) ...> VHDL Mercury My question is, why no GCCfront-end for FORTH? How hard can it be? Very. Forth is compiles according to an entirely...BNF is a poor fit to Forth. Jerry -- Engineering is the art of...
GCC, the GNU Compiler Collection currently has frontends for: C C++ Objective-C Fortran Java Ada Macro Assembly Under develobment are GCCfrontends for: BASIC (FreeBASIC project) Pascal Cobol Modula-2 PL/1 Unified Parallel C (UPC). VHDL Mercury My question is, why no GCCfront-end for FORTH? How hard can it be?
... see a Forth based on a GCCfront-end placing limits ... call C functions easily from Forth or the reverse. There is ... simple tree representation of a Forth program, and leverage the years ... optimization, and code generation that GCC has. When you look at ...>duplicated by the mechanisms of GCC. I doubt that. AFAIK even .../anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien...
... model and unification operations. Also, Forth words can consume and generate ...see a Forth based on a GCCfront-end placing limits...call C functions easily from Forth or the reverse. Whatever. It...simple tree representation of a Forth program, and leverage the years...duplicated by the mechanisms of GCC. The biggest problem with all...t be done or that Forth's model presents some huge...
... possible to treat calls between Forth words as something lighter-weight ... possible to stop the back-end from generating ABI-compliant entry ... sequences without altering the back-end?", to which I suspect the ... was a way for the frontend to specify the live ... paper will make it into gcc? - anton -- M. Anton Ertl http://...anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien...
...the same as generating C from Forth and then compiling that. You'... do optimization in the Forthfrontend, and this would allow ... I don't know gcc well enough to comment on the dependencies between the back end and the calling convention; The ... possible to treat calls between Forth words as something lighter-weight ... possible to stop the back-end from generating ABI-compliant entry ...
... the same as generating C from Forth and then compiling that. You'd...where this does not hold, the frontend has to insert some stores.... I don't know gcc well enough to comment on the dependencies between the back end and the calling convention; but ...be possible to treat calls between Forth words as something lighter-weight .../anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien....