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

声明:

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值