[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] More observations: array of pointers to functions
From: |
David McNab |
Subject: |
RE: [avr-gcc-list] More observations: array of pointers to functions |
Date: |
Tue, 27 Feb 2007 11:20:41 +1300 |
On Mon, 2007-02-26 at 13:22 -0700, Eric Weddington wrote:
> The line that you have above does some pretty needles math. You should be
> able to just simply do:
>
> fptr = (FuncPtr)pgm_read_word(&funcs_table[i]);
>
> Does that make any difference in the size of your code? It would be
> interesting to know one way or the other...
The above option generates a whole lot more code.
I posted my code earlier because I found that while it's not the most
elegant C, it does generate the smallest code with gcc-avr at -O3
Cheers
David