Keil Logo

MODP2 Compiler Directive

Abbreviation

None.

Arguments

None.

Default

NOMODP2

µVision

Options — Target — Use multiple DPTR registers.

Description

The MODP2 directive instructs the compiler to produce code for the additional hardware components (specifically, the additional data pointers) available in several Atmel and Philips compatible derivatives. Using additional data pointers improves the performance of the memcpy, memmove, memcmp, strcpy, and strcmp library routines.

See Also

NOMODP2

Example
C51 SAMPLE.C  MODP2

#pragma modp2
  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.