[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] calling function pointers via pointers ?
From: |
Vincent Trouilliez |
Subject: |
RE: [avr-gcc-list] calling function pointers via pointers ? |
Date: |
Thu, 29 Sep 2005 06:39:43 +0200 |
On Wed, 2005-09-28 at 21:18 -0700, stevech wrote:
> Unspecified array sizes are a basic no-no on a microprocessor platform. The
> compiler strategies have to be simple and explicit, unlike elegant
> situations on multi-megabyte big computers.
Thanks chaps, it's a no-no then. I will just move the strings out of the
structure, or make them fixed size, by setting a limit to the number of
items/options I can have in a menu. Since everything is in ROM it's not
gonna waste any RAM, and I can adjust the limit so as to waste as little
ROM as possible, plus, I am not gonna waste that much space since there
aren't going to be many options in the menus anyway, 5 or so per menu I
guess. If I end up having too many entries in a given menu, it means I
probably can/should break it up into smaller sub-menus anyway.
So maybe setting a fixed size in this case isn't as stupid/inelegant as
I first thought...
I sure will waste a few bytes, but only a few, and since I completely
got rid of printf, I now have lots of space at my disposal ! :-)
Hopefully this will all be working today then, and I can move on to the
next problem, stay tuned ! ;-P
Regards,
--
Vince
- [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/28
- Re: [avr-gcc-list] calling function pointers via pointers ?, Lars Noschinski, 2005/09/28
- Re: [avr-gcc-list] calling function pointers via pointers ?, Thomas Buchta, 2005/09/28
- Re: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/28
- Re: [avr-gcc-list] calling function pointers via pointers ?, Joerg Wunsch, 2005/09/28
- RE: [avr-gcc-list] calling function pointers via pointers ?, stevech, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Joerg Wunsch, 2005/09/29
- RE: [avr-gcc-list] calling function pointers via pointers ?,
Vincent Trouilliez <=
- RE: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, David Brown, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Dave Hansen, 2005/09/28
- Re: [avr-gcc-list] calling function pointers via pointers ?, David Brown, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, David Brown, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, David Brown, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/29
- Re: [avr-gcc-list] calling function pointers via pointers ?, Vincent Trouilliez, 2005/09/29