CX51 用户手册----MDU_R515 伪指令

论坛 期权论坛 脚本     
匿名技术用户   2021-1-2 01:48   195   0

声明:

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:

Operation Implementation
signed int mul Intrinsic
unsigned int mul Intrinsic
signed int div ?C?SIDIVR515 routine
unsigned int div ?C?UIDIVR515 routine
signed long mul ?C?LMULR515 routine
unsigned long mul ?C?LMULR515 routine
signed long div ?C?SLDIVR515 routine
unsigned long div ?C?ULDIVR515 routine
signed long shift left ?C?LSHLR515 routine
unsigned long shift left ?C?LSHLR515 routine
unsigned long shift right ?C?ULSHRR515 routine
See Also

NOMDU_R515

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 增加下面操作的速度:

操作 实现
有符号整型乘 Intrinsic
无符号整型乘 Intrinsic
有符号整型除 ?C?SIDIVR515 函数
无符号整型除 ?C?UIDIVR515 函数
有符号长整型乘 ?C?LMULR515 函数
无符号长整型乘 ?C?LMULR515 函数
有符号长整型除 ?C?SLDIVR515 函数
无符号长整型除 ?C?ULDIVR515 函数
有符号长整型左移 ?C?LSHLR515 函数
无符号长整型左移 ?C?LSHLR515 函数
无符号长整型右移 ?C?ULSHRR515 函数
参考

NOMDU_R515

示例
C51 SAMPLE.C MDU_R515

#pragma mdu_r515



分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP