Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] fixed address variable

2005-11-09 by Richard

While we have not done exactly that type of extensions to our compiler, 
usually requests like this come down to being able to declare multiple vars 
at consecutive locations (usually some sort of checksum and copyright 
message) or shared memory port...

I do usually steer users to solutions similar to the one you suggested 
though. Much cleaner IMHO.

At 08:26 AM 11/9/2005, Tom Walsh wrote:

>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

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com)

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.