[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: AW: [avr-gcc-list] Migrating avrgcc code from 8535 to atmega1 63
Re: AW: AW: [avr-gcc-list] Migrating avrgcc code from 8535 to atmega1 63 ?
Thu, 17 May 2001 20:26:11 +0200 (CEST)
> I'm using IAR and I just had to recompile everything with the proper
> settings and the correct linker file
> Actually I have two versions of the same software with exactely the same
> source code (size fits for both still)
Easy with avr-gcc too, use -mmcu=atmega163 or -mmcu=at90s8535 and it
just works. You should specify this option in all avr-gcc commands,
both compile and link (always use the avr-gcc driver, don't run avr-ld
directly). I'm doing this all the time, no source code changes.
Different interrupt vectors are handled by avr-libc startup code
(all these crt*.o files, one for each MCU type), and the correct
version of libc.a (multilib support) is linked automagically too.
Hope this helps,