This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、
我已通过以下链接了解如何存储
在指定的存储器位置使用 IAR 编译器中的#pragma。
processors.wiki.ti.com/.../Placing_Variables_in_Specific_Memory_Location_-_MSP430
关于这一点,我有以下问题
语句#pragma LOCATION = 0x1800已用于将变量 PORT_BIT 存储到中
0x1800的位置。 在中替换了预处理器#pragma
编译的预处理阶段此预处理器被替换、但在本例中为预处理阶段
由于正在访问内存位置、如何更换它?
2.代码#pragma LOCATION = 0x1800是否存储在存储器中? 我的理解就是这样
由于代码是预处理器、因此不会存储在何处。 是这样吗?
提前感谢