Part Number:MSP430F5338
Hi all,
I have gone through the following link to understand how to store a
variable in a specified memory location using #pragma in IAR compiler.
processors.wiki.ti.com/.../Placing_Variables_in_Specific_Memory_Location_-_MSP430
Regarding this I have the following queries
1. The statement #pragma location=0x1800 has been used to store the variable port_bit in to the
location of 0x1800. The preprocessor #pragma is replaced during the
preprocessing stage of compilation this preprocessor is replaced but for this case
how it is replaced since it is accessing memory location?
2. Does the code #pragma location=0x1800 is stored in memory? My understanding is this
code is no where stored since it is a preprocessor. Is that correct?
Thanks in advance