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]

Code generator for 16 bits embedded controller


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


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