Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Global arrays

2006-05-26 by Tom Walsh

vineet jain wrote:

>Hello group,
>    My application fails to give the correct output when I define a global array of size 1024 int type. When I make it local to a function it gives the correct output.
>  The above is true for -o3 level optimization.
>  
>  But when I make the array global and o0 optimization, it gives the correct output.
>  
>  Any idea what the compiler would be doing in o3 level optimization to the global array.
>  
>  
>
The boingboing ARM compiler version 198 is broken, don't use -O3

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.