Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: ram initialization at reset

2006-03-07 by Tom Walsh

ebarker123 wrote:

>Thanks for you excellent reply. Is this for the GNU compiler ?
>I failed to mention that I'm using the Keil compiler.
>I've determined that the following directives do the trick.
>
>#pragma NOINIT
>char states[100];     /* Uninitialized Variable */
>
>#pragma INIT
>char array[100];      /* Initialized Variable */
>
>  
>
Yes, it is for the GNU gcc, I've tried this under the gcc-4.0.2 + 
binutils-2.16.1.

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.