你好,
用户手册与编译器一起安装在/ doc子目录中。
为了将变量放在所需的内存中,首先选择将决定所有变量默认位置的内存模型,然后使用@tiny和@near关键字覆盖所选变量的标准选项:
char var1; //将进入页零或16位寻址,具体取决于内存模型
@tiny char var2; //无论内存模型如何,都将进入第0页
@near char var3; //无论内存模型如何,都将进行16位寻址
问候,
卢卡(宇宙)
以上来自于谷歌翻译
以下为原文
Hello,
the user manual is installed together with the compiler, in the /doc subdirectory.
In order to put your variables in the memory you want, first choose the memory model that will decide where all the variables go by default, and then override the standard choice for selected variables by using the @tiny and @near keywords:
char var1; // will go in page zero or 16-bit addressing, depending on the memory model
@tiny char var2; // will go in page zero regardless of the memory model
@near char var3; // will go in 16 bit addressing regardless of the memory model
Regards,
Luca (Cosmic)
你好,
用户手册与编译器一起安装在/ doc子目录中。
为了将变量放在所需的内存中,首先选择将决定所有变量默认位置的内存模型,然后使用@tiny和@near关键字覆盖所选变量的标准选项:
char var1; //将进入页零或16位寻址,具体取决于内存模型
@tiny char var2; //无论内存模型如何,都将进入第0页
@near char var3; //无论内存模型如何,都将进行16位寻址
问候,
卢卡(宇宙)
以上来自于谷歌翻译
以下为原文
Hello,
the user manual is installed together with the compiler, in the /doc subdirectory.
In order to put your variables in the memory you want, first choose the memory model that will decide where all the variables go by default, and then override the standard choice for selected variables by using the @tiny and @near keywords:
char var1; // will go in page zero or 16-bit addressing, depending on the memory model
@tiny char var2; // will go in page zero regardless of the memory model
@near char var3; // will go in 16 bit addressing regardless of the memory model
Regards,
Luca (Cosmic)
举报