GCC global, local, register variables

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

Is there some general advice about minimizing code space via global, local, or register variables in GCC AVR.

I'd like to use register variables but I can't find any info on which are free to use and which shouldn't be touched...

I scanned the Atmel app note on efficient C coding but some of their tricks don't work namely to put things in structures rather than individual variables. This actually produced larger code.