|
From: | Cory Cross |
Subject: | Re: [avr-gcc-list] Stack-allocated array bug |
Date: | Wed, 13 Apr 2011 14:34:13 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.12) Gecko/20100918 Icedove/3.0.8 |
Hi Johann,
Same place the integer variab... which optimization made go away so they only exist in registers! So that's why it only occurred with the array.Where do you expect should these arrays be placed?
You make main naked, so avr-gcc won't set up a frame pointer for you, however, it will use Y as frame pointer, anyway.
I didn't know that, thank you. I found a note by Joerg to this list in 2007 recommending use of the OS_main attribute.
Cory
[Prev in Thread] | Current Thread | [Next in Thread] |