Keil Logo

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
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.