我看一些资料说定义全局变量可以声明为near或far型,near为寄存器相对寻址,far为寄存器间接寻址。但我在编程时发现可以使用far类型修饰符,但用near的话(near Uint32 tmp = 0;)软件不能识别关键字,说语法错误,请问是怎么回事?是如果不特别声明全局变量是far类型的都默认为near么?
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.
我看一些资料说定义全局变量可以声明为near或far型,near为寄存器相对寻址,far为寄存器间接寻址。但我在编程时发现可以使用far类型修饰符,但用near的话(near Uint32 tmp = 0;)软件不能识别关键字,说语法错误,请问是怎么回事?是如果不特别声明全局变量是far类型的都默认为near么?