Yahoo Groups archive

Lpc2000

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

Message

fixed address variable

2005-11-09 by szemzoandras

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;


Or I can only do it with separate section in linker script?

__attribute__ ((section (".ysection")))

and 

 -Wl,--section-start=.mysection=0x81000000


thanks 
Andrew

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.