[Top][All Lists]

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

Re: [avr-chat] Startup code.

From: Robert von Knobloch
Subject: Re: [avr-chat] Startup code.
Date: Wed, 22 Sep 2010 13:26:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv: Gecko/20100915 Thunderbird/3.1.4

What is also interesting is that an "avr-objdump -d crttn13.o" in the
avr-libc source reveals that the stack pointer (0x3d) is set to 0.

Disassembly of section .init2:

00000000 <.init2>:
   0:   11 24           eor     r1, r1
   2:   1f be           out     0x3f, r1        ; 63
   4:   c0 e0           ldi     r28, 0x00       ; 0
   6:   cd bf           out     0x3d, r28       ; 61

Disassembly of section .init9:

Somehow (make process?) this is being changed to 0x1f in the case ot
tiny13. Now to find out where, because if I just edit crttn13.0 to
remove lines 4 & 6 (which is the effect that I want), I expect it will
break something in the compile chain.


reply via email to

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