Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] fixed address variable

2005-11-09 by Tom Walsh

szemzoandras wrote:

>Hello,
>
>
>Is it possible to place a variable to a fixed memory location in gcc,
>like in keil, i mean:
>
>unsigned int dd _at_ 0x81000000;
>
>
>  
>
FWIW, I wonder why Keil added an extension to their C compiler?  I've 
been using "int * dd = ((unsigned int *)0x81000000)" for many many 
years.  Not only with gcc, but other compilers as well.

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.