avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] GCC Functions


From: Rich Neswold
Subject: Re: [avr-gcc-list] GCC Functions
Date: Fri, 30 Nov 2001 14:11:52 -0600
User-agent: Mutt/1.2.5i

Wasn't it 29-Nov-2001, at 11:12AM, when Joerg Wunsch said:
> Patrick Lanphier <address@hidden> wrote:
> 
> > ..., I don't know why but the last two lines work and the
> > first three do not when compiling for the chip?
> > 
> > #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
> > 
> > avr-gcc -O0 -mmcu=at90s2313 -Wall -o demo1 demo2c.c
> > avr-objcopy -O ihex demo1 demo1.hex
> 
> Both versions are supposed to work identically (with the exception
> that the second one doesn't store demo1.o permanently, of course).  If
> one works and the other doesn't, i suppose your gcc installation is
> broken.  You could do two things to analyze the situation:

Actually, the first example links without specifying the MCU type, so it is
(possibly) getting linked with the wrong crt.o. (What is the default MCU
type?)

-- 
 Rich Neswold

 efax: 1.240.536.7092
  web: www.enteract.com/~rneswold/

Attachment: pgpogm1Vcu5L3.pgp
Description: PGP signature


reply via email to

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