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.
您好,请问能否强制 C 语言编译器将某些变量放入 DARAM 或者 SARAM?例如,如下有两个全局性阵列:
char str_saram[18];
char str_daram[18];
我想把第一个放在 SARAM 中,第二个放在 DARAM 中。我已经尝试过把这两行添加到链接器命令文件的末尾:
.data:str_saram >> SARAM0
.data:str_daram >> DARAM0
但什么都没有改变——两个字符串都放在 DARAM1 里(0x2abb 和 0x2acd)。我该怎么做呢?