avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Re: snprintf bug ?


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Re: snprintf bug ?
Date: Fri, 14 Oct 2005 20:55:35 +0200
User-agent: Mutt/1.4.2.1i

As Dmitry K. wrote:

>    You have exclude frame pointer (r28/r29) initialization
> by defining 'naked' for main.
>    But with automatic string 'heading_tmp' this is not work:
> frame pointer is used as base address.  Result is writing
> to random place.  With static string all works:
> address is absolute.

Thanks for your analysis, Dmitry.

To summarize: declaring main() to be a naked function is not supported
in any way.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

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