l8er
--
Send compilers articles to comp...@iecc.com,
meta-mail to compiler...@iecc.com.
Chris Fraser, Bell Labs
We found porting lcc to 'MIPs like' processors quite straight-forward.
Using an existing .md file is the best way to start. We did find,
however, that porting lcc to register or stack-based machines
non-trivial. Has anybody else ported lcc to non-register based
machines? We had problems disabling the register allocator (especially
for temporaries).
- Mike
If this was to be done what would be the best method? Generate the
same tree's as lcc or generate DAGS directly??
Could the lcc symbol table be used? perhaps modified a little for
languages with different scoping.
I have the lcc book and I belive they mentioned things like this in
the book, but has anyone ever tried it?
.....thanks........larry
[Having been one of the earlier suckers who spliced a Fortran front end onto
a C compiler (a little earlier than f77) I can report that small semantic
differences between analogous constructs in different languages can drive
you nuts, particularly if you want to code to be good. -John]
Michael J. Wirthlin (wirt...@fpga.ee.byu.edu) wrote:
: We found porting lcc to 'MIPs like' processors quite straight-forward.
: ... Has anybody else ported lcc to non-register based
: machines? We had problems disabling the register allocator (especially
: for temporaries).
Micheal Haardt ported lcc to the transputers, which is pretty much a
stack-based machine. Check out the source in ftp://unix.hensa.ac.uk under
/parallel/transputer/software/oses/minix/aachen. Good luck...
Ram
Ram Meenakshisundaram
Systems Administrator
BlackRock Financial Management Inc
Phone: (212) 754-5577
dEmail: rmee...@bfm.com