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

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

Re: [avr-gcc-list] Weird optimization issue with avr-gcc 4.5.3, re "nake


From: William \"Chops\" Westfield
Subject: Re: [avr-gcc-list] Weird optimization issue with avr-gcc 4.5.3, re "naked."
Date: Fri, 27 Jan 2012 09:51:56 -0800

On Jan 27, 2012, at 9:36 AM, Georg-Johann Lay wrote:

> OS_main/OS_task won't have the problem, but such functions cannot be used in
> .initN, of course. Except in the case where the code is in .init9 with custom
> startup code.

Which is exactly what optiboot is doing.

Perfect.  "Problem" explained, workaround exists.  Solved!
Using OS_main also causes the frame pointer to be set up, so while the code is 
a big bigger than it could be, it is at least correct.

BillW




reply via email to

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