[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] GCC Functions
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] GCC Functions |
Date: |
Thu, 29 Nov 2001 15:49:11 +0100 (MET) |
Kujala Matti <address@hidden> wrote:
>> > #avr-gcc -O0 -Wall -mmcu=at90s2313 -c demo2c.c -o demo1.o
>> > #avr-gcc -o demo1.elf demo1.o
>> > #avr-objcopy -O ihex demo1.elf demo1.hex
> When you are compiling in the first way, are you not supposed to
> explicitly link crt1.o if you want it put into the program?
Yes, you are not supposed to ever handle crtX.o manually when using
avr-gcc. Only if you decide to handle the entire linkage step
manually by explicitly calling avr-ld, this will pass any and all
responsibilites to you.
Again, you can easily watch all this by calling avr-gcc with the -v
flag: it'll tell you about which backend command it's calling, and
which arguments to call them with.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/