
c语言 at 前后下划线
比如:volatileunsignedcharxdataram[offset]_at_Ram_base;对了,我的疑问在于:这个_at_有没有什么相关知识点?麻烦给讲解一...
比如:volatile unsigned char xdata ram[offset] _at_ Ram_base;
对了,我的疑问在于:这个_at_有没有什么相关知识点?麻烦给讲解一下,谢谢。 展开
对了,我的疑问在于:这个_at_有没有什么相关知识点?麻烦给讲解一下,谢谢。 展开
2个回答
展开全部
嵌入式C的关键字,变量可能定位在绝对内存地址
——————————————————
The absolute address following the _at_ keyword must conform to the
physical boundaries of the memory space for the variable. The Cx51 Compiler
checks for and reports invalid address specifications.
The following restrictions apply to absolute variable location using the _at_ keyword:
Absolute variables cannot be initialized.
Functions may not be located at an absolute address.
Bit variables may not be located at an absolute address.
在_at_后面的绝对地址要符合内存空间的物理边界
不能被初始化
函数和位变量不能定位在绝对地址
——————————————————
The absolute address following the _at_ keyword must conform to the
physical boundaries of the memory space for the variable. The Cx51 Compiler
checks for and reports invalid address specifications.
The following restrictions apply to absolute variable location using the _at_ keyword:
Absolute variables cannot be initialized.
Functions may not be located at an absolute address.
Bit variables may not be located at an absolute address.
在_at_后面的绝对地址要符合内存空间的物理边界
不能被初始化
函数和位变量不能定位在绝对地址
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询