avr-gcc-list
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]