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 mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list