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

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

[avr-gcc-list] preinit data bug in the new avr gcc tools


From: David Sowa
Subject: [avr-gcc-list] preinit data bug in the new avr gcc tools
Date: Mon, 17 Jun 2002 09:31:42 -0400

First, many thanks to the great people on this list who work hard
to make gcc for the avr.

Second, I downloaded Marc's windows build of the new gcc 3.2 based
toolchain this morning and have the following problem.

The compiler crashes on files that have more than 32K of pre-init flash
data defined in them.  I have things that look like this...

unsigned char __attribute__((progmem)) mbuf[] =
{
/*0000:*/ 0x7F, 0x45, 0x4C, 0x46, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
/*0010:*/ 0x02, 0x00, 0x2D, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x34, 0x00, 0x00, 0x00,
  .... goes on for 30k...
};

unsigned char __attribute__((progmem)) mbuf2[] =
{
/*0000:*/ 0x7F, 0x45, 0x4C, 0x46, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00,
/*0010:*/ 0x02, 0x00, 0x2D, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x34, 0x00, 0x00, 0x00,
  .... goes on for 30k...
};

and when the total of this memory usage goes over 32K then the compiler
crashes.  When the debugger starts up it says "Stack Overflow".  So this may
be a gcc problem or it may be a windows build issue.

Thanks to anyone who can check this out.

regards,

David Sowa


avr-gcc-list at http://avr1.org



reply via email to

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