Am 20.11.2010 18:57, schrieb Mark J. Blair:
> Does mspgcc4 have some equivalent of the IAR "#pragma location"
> directive for placing a variable at a specific absolute memory
> address?
the __attribute__((section...)) command locates variables, functions etc
in a named segment. you could define own segments in the linker script
or linker command line.
positioning variables is also quite easy:
int im_in_infomem_on_a_2xx asm("0x1000");
but this will not work with initialized variables.
chris
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users