声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
MOD517 Compiler Directive
Abbreviation | None. | ||||||
Arguments | Optional parameters, enclosed in parentheses, to control support for individual components of the 80C517. | ||||||
Default | NOMOD517 | ||||||
µVision | Options — Target — Use On-Chip Arithmetic Unit. | ||||||
Description | The MOD517 directive instructs the Cx51 Compiler to produce code for the additional hardware components (the arithmetic processor and the additional data pointers) of the Infineon C517 or variants. This feature improves the performance of integer, long, and floating-point math operations, as well as functions that make use of the additional data pointers (memcpy, memmove, memcmp, strcpy, and strcmp). Library functions that take advantage of the arithmetic processor have a 517 suffix. Refer to the Library Reference for details on these functions.) Additional parameters may be specified with the MOD517 directive to control the Cx51 Compiler support of the individual components of the Infineon device. When specified, the parameters must appear within parentheses immediately following the MOD517 directive. Parentheses are not required if no additional parameters are specified.
Specifying both of these additional parameters with MOD517 has the same effect as using the NOMOD517 directive. Note
| ||||||
See Also | |||||||
Example | C51 SAMPL517.C MOD517 #pragma MOD517 (NOAU) #pragma MOD517 (NODP8) #pragma MOD517 (NODP8, NOAU) |
MOD517 编译器伪指令
缩写 | 无。 | ||||||
参数 | 参数选项,用括号括起来,控制80C517器件的独立组件的支持。 | ||||||
缺省 | NOMOD517 | ||||||
µVision | Options — Target — Use On-Chip Arithmetic Unit. | ||||||
描述 | MOD517 伪指令告诉Cx51 编译器为Infineon C517或变体的附件硬件(算术处理器以及附件的数据指针)生成代码。这个特性提高整型,长整型以及浮点型数学操作以及使用附件数据指针的函数(memcpy, memmove, memcmp, strcpy, 和 strcmp)的性能。 使用算术处理器的库函数有 517 前缀。这些函数的细节参考 库引用。 MOD517 伪指令指定的附件参数用来控制Cx51 编译器支持 Infineon 器件的附加组件。 一旦指定,参数必须用括号括起来。如果不需要附加参数,就不需要括号。
用 MOD517 同时指定这两个参数和NOMOD517 伪指令效果一样。 注意
| ||||||
参考 | |||||||
示例 | C51 SAMPL517.C MOD517 #pragma MOD517 (NOAU) #pragma MOD517 (NODP8) #pragma MOD517 (NODP8, NOAU) |