声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
SMALL Compiler Directive
Abbreviation | SM |
Arguments | None. |
Default | SMALL |
µVision | Options — Target — Memory Model. |
Description | This directive selects the SMALL memory model that places all function variables and local data segments in the internal data memory of the 8051 system. This allows very efficient access to data objects. The address space of the SMALL memory model, however, is limited. Regardless of memory model type, you may declare variables in any of the 8051 memory ranges. However, placing frequently used directives (such as loop counters and array indices) in internal data memory significantly improves system performance.
|
See Also | |
Example | C51 SAMPLE.C SMALL #pragma small |
SMALL 编译器伪指令
缩写 | SM |
参数 | 无。 |
缺省 | SMALL |
µVision | Options — Target — Memory Model. |
描述 | 这个伪指令选择 SMALL 存储器模型,所有的函数变量和局部数据段放在8051系统的内部数据段。这可以有效地访问数据对象。但是使用SMALL 存储器模型的地址空间有限。 不管存储器模型的类型,用户可以在8051的任意存储器范围内声明变量。但是把频繁使用的变量 (例如循环计数器和数组索引) 放在内部数据存储器可以有效地提高系统性能。
|
参考 | |
示例 | C51 SAMPLE.C SMALL #pragma small |