Hi All,

Is there are away in MSPGCC to allowcate the memory address of a variable on 
declaration?

Ie.

struct registerByte port1bits;

I want to set the storage location for this struct at memory address 0x0021.
Ive been told that in IAR this is done with the @ symbol.  Is there a simmilar 
way of doing this in mspgcc?

I can create a pointer to the struct, and set the pointer to 0x0021:

ie:
struct registerByte* port1bits = (struct registerByte*)0x0021;

However I would prefer to do it without the use of pointers if there is a way.

Thanks
Anthony

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009

Reply via email to