Re: Problem involved porting LCC to a 8 bit microcontroller

glen herrmannsfeldt <gah@ugcs.caltech.edu>
8 Sep 2006 00:28:09 -0400

          From comp.compilers

Related articles
Problem involved porting LCC to a 8 bit microcontroller amker.cheng@gmail.com (2006-09-06)
Re: Problem involved porting LCC to a 8 bit microcontroller englere_geo@yahoo.com (Eric) (2006-09-08)
Re: Problem involved porting LCC to a 8 bit microcontroller tmk@netvision.net.il (Michael Tiomkin) (2006-09-08)
Re: Problem involved porting LCC to a 8 bit microcontroller toby@telegraphics.com.au (toby) (2006-09-08)
Re: Problem involved porting LCC to a 8 bit microcontroller gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-09-08)
Re: Problem involved porting LCC to a 8 bit microcontroller raffaele.salmaso@gmail.com (Raffaele Salmaso) (2006-09-08)
| List of all articles for this month |
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: 8 Sep 2006 00:28:09 -0400
Organization: Compilers Central
References: 06-09-007
Keywords: C, lcc, code
Posted-Date: 08 Sep 2006 00:28:09 EDT

amker.cheng@gmail.com wrote:


> Just a student project !Porting porting LCC to a 8 bit microcontroller
> with which char is 8 bit and int is 16bit.
> But I found in LCC character and short-integer actual arguments are
> always promoted to the coresponding type even in the presence of a
> prototype!(And does there any place in it did similar thing?)
> So I have to use 2 8bit regsters for a char type argument!This is
> unbearable here!


Do you have the book about LCC? It will require a little more work
than using the existing rules, but it should be possible, even as a
student project.


-- glen



Post a followup to this message

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