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.

变量和函数位置和大小怎么定义



全局变量一般都是编译器自动分配在RAM中,

如果我想把全局变量放在固定的地址(绝对地址中)怎么定义?

函数一般是编译器自动分配FLASH地址

如果我想把函数放在固定的地址(绝对地址)怎么办?