[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Stack-allocated array bug

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: Gecko/20100918 Icedove/3.0.8

Hi Johann,

Where do you expect should these arrays be placed?
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.

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.


reply via email to

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