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

本文深入解析MODDA编译器伪指令,旨在提升Dallas DS80C390、DS80C400、DS5240等微控制器上整型和长整型数学操作的性能。通过使用MODDA伪指令,仅在一个执行线程中使用算术加速器,实现更高效的代码生成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

声明:

1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。

2、请勿用于商业用途。

3、英文来自:http://www.keil.com/support/man/docs/c51/。

4、欢迎大家共同与我交流探讨(290207203@qq.com)。


MODDA Compiler Directive

Abbreviation

None.

Arguments

None.

Default

NOMODDA

µVision

Options — Target — Use On—Chip Arithmetic Accelerator.

Description

The MODDA directive enables code generation for the additional hardware components (specifically, the arithmetic accelerator) of the Dallas Semiconductor DS80C390, DS80C400, DS5240, and compatible derivatives. This improves the performance of integer and long math operations.

When using this directive, it is important that only one thread of execution uses the arithmetic processor.

  • Use the MODDA directive to compile functions which are guaranteed to execute only in the main program or functions used by one interrupt service routine, but not both.
  • Compile all remaining functions with the NOMODDA directive.
See Also

NOMODDA

Example
C51 SAMPL390.C MODDA

#pragma modda


MODDA 编译器伪指令

缩写

无。

参数

为。

缺省

NOMODDA

µVision

Options — Target — Use On—Chip Arithmetic Accelerator.

描述

MODDA 伪指令使能Dallas DS80C390, DS80C400, DS5240和兼容器件的附加的硬件组件(尤其是算术加速器)的代码生成。 这个伪指令提高整型和长整型数学操作的性能。

当使用这个伪指令时,仅有一个执行的线程使用算术加速器,这一点很重要。

  • 使用MODDA伪指令编译函数,必须确保是在主函数或中断服务程序使用的函数中执行,但不能同时。
  • 编译剩下的函数用 NOMODDA 伪指令。
参考

NOMODDA

示例
C51 SAMPL390.C MODDA

#pragma modda


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值