[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] refactoring to reduce code size
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] refactoring to reduce code size |
Date: |
Wed, 29 Jan 2003 18:14:02 +0100 (MET) |
"E. Weddington" <address@hidden> wrote:
> If the cases are sequential values, it *might* be more prudent to
> implement it as a table. Other times, if there are not many cases, a
> simple if-elseif structure will be more efficient on space. You'll
> probably have to experiment with the C code and see what assembly it
> produces.
You can force it to produce an if/else sequence, IIRC it's
-mno-tablejump.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org