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.

获取段起始地址和长度

在main函数中如何可以获取在CMD文件定义的段的起始地址和大小?

是起始地址和大小,如果定义一个全局变量在这个段中,那也只能获取这个段中得某个地址而已,而不能获取起始地址吧,另外这个段的大小又该怎样获取了?

另外一个问题,使用DATA SECTION定义全局变量是否可以选在放在这个段的起始位置和结束位置呢?