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

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

[avr-gcc-list] Problem compiling large object files for mega128


From: Torleif Sandnes
Subject: [avr-gcc-list] Problem compiling large object files for mega128
Date: Mon, 20 Dec 2004 15:21:11 +0100
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Hi.

I am trying to compile a large example object file with generated code.
The code goes something like this:

int func0()
{ int a=2; int b=4; return a+b;}
...
int func900()
{ int a=2; int b=4; return a+b;}

int main(int argc, char **argv)
{
   int c = 0;
   c = func0();
...
   c = func900();
   return c;
}

I compile it like this:
>avr-gcc -Wall -gdwarf-2 -mmcu=atmega128 -O0 largeandsimple.c -o 
largeandsimple.elf

and get the following from avr-gcc (WinAVR 20040720)

c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccYzaaaa.s: Assembler messages:
c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccYzaaaa.s:55075: Error: value of 66702 too large for field of 2 bytes at 16 c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccYzaaaa.s:92562: Error: value of 66702 too large for field of 2 bytes at 52828 c:\DOCUME~1\tsandnes\LOCALS~1\Temp/ccYzaaaa.s:54188: Error: value of 65542 too large for field of 2 bytes at 10009
...

Regards,
Torleif Sandnes


reply via email to

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