Re: Retargeting lcc for our architecture

Michael J. Wirthlin <wirthlim@fpga.ee.byu.edu>
16 Apr 1996 22:16:59 -0400

          From comp.compilers

Related articles
Retargeting lcc for our architecture gt0116d@prism.gatech.edu (1996-04-13)
Re: Retargeting lcc for our architecture cwf@research.att.com (Chris Fraser) (1996-04-14)
Re: Retargeting lcc for our architecture wirthlim@fpga.ee.byu.edu (Michael J. Wirthlin) (1996-04-16)
Re: Retargeting lcc for our architecture rmeenaks@bfm.com (1996-04-19)
| List of all articles for this month |
From: Michael J. Wirthlin <wirthlim@fpga.ee.byu.edu>
Newsgroups: comp.compilers
Date: 16 Apr 1996 22:16:59 -0400
Organization: Compilers Central
References: 96-04-089
Keywords: C, architecture



Chris Fraser <cwf@research.att.com> writes:
|> If your processor does indeed share a lot with the MIPS, then you can
|> probably retarget lcc by editing a copy of the file "mips.md" and
|> little or nothing else. You don't have to read all of the book; read
|> Chapters 5 and 16 for sure, and probably 13 and 14 too, because they
|> tell you the most about the one file that you'll be modifying. Good
|> luck.


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


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.