[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] How to skip c-runtime init
From: |
Larry Barello |
Subject: |
RE: [avr-gcc-list] How to skip c-runtime init |
Date: |
Wed, 18 May 2005 09:29:32 -0700 |
-nostartfiles deletes the interrupt vector table, but I still end up with
fragments for initializing data and clearing BSS.
-nostdlib deletes all libc stuff (eeprom_read_byte(), etc) which are easy
enough to replace.
Is the "nostartfiles" behavior correct? Or is there some other essential
tidbit I am missing?
-----Original Message-----
From: Šak Andrej [mailto:address@hidden
Sent: Tuesday, May 17, 2005 11:49 PM
To: Larry Barello; AVR GCC List
Subject: RE: [avr-gcc-list] How to skip c-runtime init
You can try -nostartfiles option for linking.
from man avr-gcc:
-nostartfiles
Do not use the standard system startup files when linking. The
standard system libraries are used normally, unless -nostdlib or
-nodefaultlibs is used.
Andrej
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Larry Barello
> Sent: Tuesday, May 17, 2005 3:11 PM
> To: AVR GCC List
> Subject: [avr-gcc-list] How to skip c-runtime init
>
> I would like to use GCC and skip the c-runtime init module
> completely (I'll initialize my few variables at the start of
> "main()"). I am writing a bootloader, of course...
>
> I vaguely recall doing this in the past, but cannot remember
> how it is done, nor find it in the libc FAQ.
>
> TIA.
>
> ----
> Larry Barello
> http://www.barello.net
>
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>