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.

allocation will span page boundary 怎么解决

编译后出现这个警告,一般就直接忽略了,没有发现什么问题,但是一直不放心,出现这样的问题应该如何解决大 ?

  • shuaihu,

    这个警告对程序没有影响。

    原因是选择了"Generate Extended Assembly Warnings" (-mw) 的编译选项。

    这表示上面编译的某一个段超过了64个字的长度,没能完全放在一个64个字的数据页中。编译器会知道这种情况的,然后选择合适的寻址方式去读取这些数据。

    你可以取消mw这个编译选项即可。

    Eric

  • 谢谢!已经找到对应的设置选项!