声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
OMF2 Compiler Directive
Abbreviation | O2 |
Arguments | None. |
Default | The C51 Compiler, by default, generates Intel OMF51 object modules. |
µVision | Project — Select Device — Use LX51 instead of BL51. |
Description | The OMF2 directive enables the OMF2 file format which provides detailed symbol type checking across modules and eliminates the historic limitations of the Intel OMF51 file format. The OMF2 file format is required to use the following features of the Cx51 Compiler:
The OMF2 file format requires the extended LX51 Linker/Locater and cannot be used with the BL51 Linker/Locater. |
Example | C51 SAMPLE.C OMF2 #pragma O2 |
OMF2 编译器伪指令
缩写 | O2 |
参数 | 无。 |
缺省 | C51 编译器缺省生成Intel OMF51目标模块。 |
µVision | Project — Select Device — Use LX51 instead of BL51. |
描述 | OMF2 伪指令使能OMF2 文件格式,它提供模块间符号类型检查的细节,并消除 Intel OMF51 文件格式的限制。 OMF2 文件格式需要使用Cx51 编译器的下列特性:
OMF2 文件格式需要扩展的LX51 链接器/定位器,不能使用 BL51 链接器/定位器。 |
示例 | C51 SAMPLE.C OMF2 #pragma O2 |