Yahoo Groups archive

Lpc2000

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

Message

Global arrays

2006-05-26 by vineet jain

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.
  
  Kindly suggest.
  
  Regards,
  Vineet.
  
  
		
---------------------------------
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! Messenger with Voice

[Non-text portions of this message have been removed]

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.