声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
MDU_R515 Compiler Directive
| Abbreviation | None. | ||||||||||||||||||||||||
| Arguments | None. | ||||||||||||||||||||||||
| Default | Multiply/Division Unit support is disabled. | ||||||||||||||||||||||||
| µVision | Options — Target — Use On-Chip Arithmetic Unit. | ||||||||||||||||||||||||
| Description | The MDU_R515 directive enables support for the Multiple/Division Unit (MDU) of the Cast/Evatronix R80515. When this directive is specified the compiler uses the MDU to increase the speed of the following operations:
| ||||||||||||||||||||||||
| See Also | |||||||||||||||||||||||||
| Example | C51 SAMPLE.C MDU_R515 #pragma mdu_r515 |
MDU_R515 编译器伪指令
| 缩写 | 无。 | ||||||||||||||||||||||||
| 参数 | 无。 | ||||||||||||||||||||||||
| 缺省 | 乘/除单元支持禁止。 | ||||||||||||||||||||||||
| µVision | Options — Target — Use On-Chip Arithmetic Unit. | ||||||||||||||||||||||||
| 描述 | MDU_R515 伪指令使能Cast/Evatronix R80515器件的乘/除单元(MDU) 。当指定这个伪指令时,编译器使用 MDU 增加下面操作的速度:
| ||||||||||||||||||||||||
| 参考 | |||||||||||||||||||||||||
| 示例 | C51 SAMPLE.C MDU_R515 #pragma mdu_r515 |
本文深入解析了MDU_R515编译器伪指令的功能,阐述了其在Cast/Evatronix R80515器件中如何通过激活乘/除单元(MDU)来提高特定运算速度,包括有符号和无符号整型、长整型的乘法、除法以及位移操作的实现方式。同时提供了示例代码帮助读者实践应用。

663

被折叠的 条评论
为什么被折叠?



