This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: porting gcc


Andrew Haley wrote:
=?iso-8859-1?Q?Gr=E9goire=5FDooms?= writes:
 > I'd like to port gcc to the Microchip PIC 8 bit microcontroller familly.

Ouch.  Are you really sure that you want to do this?  Gcc requires
reasonably efficient addressing of stack frames in order to spill and
fill when there are insufficient physical registers.  This might be
hard to do on the PIC.  gcc has been [orted to some 16-bitters, but a
microcontroller is a stretch.
Well yes, but remember that gcc has been ported to run on AVR (and quite successfully IMHO). AVR is the "sibling"-product for PIC's. It is a 8-bit microcontroller, with some limited 16-bit extensions. I do not know anything about PIC's, but I think the target should be able to handle gcc code.

I must remember anyone of the mission statement that states that gcc wants more new targets :) We mustn't discurage newcomers... ;) I have experienced that several of these small gcc targets (like AVR's) produces better quality code than its commercial tools. We should encourage development of gcc for small microcontrollers as well as the big mainframe targets. gcc is a great product!

I have been thinking about porting 8051 to gcc, but I wont do so until I need it in a project (if I need it at all). Porting gcc to new targets is a fairly extensive job.


Svein


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]