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

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

[avr-gcc-list] ELF to Extented COFF conversion for C++


From: Eric Fu
Subject: [avr-gcc-list] ELF to Extented COFF conversion for C++
Date: Tue, 13 Jan 2004 21:58:10 +1100

I'm trying to test if WINAVR Sept. 2003 is suitable for C++ with AVR Studio 
4.08. Now it passes compilation and linking for a simple program, but it fails 
at ELF to COFF conversion. So I can't use AVR Studio to debug. 
Is there any way that I can still use AVR Studio to debug? 
Is WINAVR Sept. 2003 suitable for C++? 
Compared with a C++ and C implementation for a simple function (~1KB), C++ code 
is >20% longer. Is this generally true?

The error message for ELF to COFF is as below:

Linking: RF001.elf
avr-g++ -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields 
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=RF001.o 
-Ic:/pjt2/avr/PJT_inc RF001.o UART.o timer.o port.o isr.o   --output RF001.elf 
-Wl,-Map=RF001.map,--cref -lm

Converting to AVR Extended COFF: RF001.cof
avr-objcopy --debugging --change-section-address .data-0x800000 
--change-section-address .bss-0x800000 --change-section-address 
.noinit-0x800000 --change-section-address .eeprom-0x810000  -O coff-ext-avr 
RF001.elf RF001.cof
class type not supported in coff-ext-avr
make: *** [extcoff] Error 1

> Process Exit Code: 2

Eric F


reply via email to

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