声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
LARGE Compiler Directive
Abbreviation | LA |
Arguments | None. |
Default | SMALL |
µVision | Options — Target — Memory Model. |
Description | This directive selects the LARGE memory model where all variables and local data segments of functions and procedures reside (as defined) in the external data memory of the 8051 system. Up to 64 KBytes of external data memory may be accessed. This, however, requires the long and therefore inefficient form of data access through the data pointer (DPTR). Regardless of memory model type, you may declare variables in any of the 8051 memory ranges. However, placing frequently-used variables (such as loop counters and array indices) in internal data memory significantly improves system performance.
|
See Also | |
Example | C51 SAMPLE.C LARGE #pragma large |
LARGE 编译器伪指令
缩写 | LA |
参数 | 无。 |
缺省 | SMALL |
µVision | Options — Target — Memory Model. |
描述 | 这个伪指令选择 LARGE 存储器模型。在8051系统中,所有的变量和函数的局部数据段(根据定义)保存在外部数据存储器中。 最多可以访问64 KB字节的外部数据存储器。但是这需要更长,效率不高的通过DPTR的数据访问。
|
参考 | |
示例 | C51 SAMPLE.C LARGE #pragma large |