Re: [avr-gcc-list] How to skip c-runtime init

2005-05-18 Thread Dave Hylands
If you run avr-gcc with the -v option you can see exactly what it passes down to avr-ld. For example: Using: avr-gcc -v -mmcu=atmega128 -o hello.elf hello.o you'll see that -lc and -lgcc are passed into avr-ld. If you use: avr-gcc -v -mmcu=atmega128 -o hello.elf -nostdlib hello.o you'll

Re: [avr-gcc-list] How to skip c-runtime init

2005-05-18 Thread Andy Warner
Larry Barello wrote: > -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 i

RE: [avr-gcc-list] How to skip c-runtime init

2005-05-18 Thread Larry Barello
essential tidbit I am missing? -Original Message- From: Šak Andrej [mailto:[EMAIL PROTECTED] 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: -no

RE: [avr-gcc-list] How to skip c-runtime init

2005-05-18 Thread Šak Andrej
nal Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > 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 &g

[avr-gcc-list] How to skip c-runtime init

2005-05-17 Thread Larry Barello
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 Ba