This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Code generator for 16 bits embedded controller
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Subject: Code generator for 16 bits embedded controller
- From: "Geer, Joris Van Der (Joris)" <jgeer at agere dot com>
- Date: Wed, 28 Mar 2001 14:22:27 +0200
Dear readers,
We are using a 16 bits embedded controller in an application that is
currently programmed in assembly language.
We are looking at GCC to be able to program the controller in C.
This controller has an irregular instruction set, few general-purpose
registers, and a larger set of indirectly accessible registers. There is no
based or indexed addressing mode.
The two questions I have is:
- Any indication how much effort will be involved in creating a code
generator for such a controller ?
- Any idea whether the efficiency of compiled code (assuming typical
programming style) will be sunbstantially lower
when compared to hand-optimized assembly (assuming nontypical programming
style)
I can imagine that it depends upon a lot of details. But any indication is
welcome.
Joris van der Geer
Software engineer,
Netherlands