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.

如何给某段划分一个确定的地址段



若是我想将某个缓冲变量(srcbuf)存放于一个固定的地址段如起始地址为0x80000000,长度为256字节,该如何在.cfg文件中设置啊?谢谢

  • 有cfg文件那应该是基于BIOS的
    我了解的方法是
    1. 在platform中定义一个memory区间(定义memory区间是可以指定地址的)
    2. 再在config文件中定义一个section,把这个section映射到这个memory区间,
    3. 变量用#PRAGMA_DATASECTION(变量名,"section名")指定到这个section
    比较繁琐,也许还有更简单的。。。