Keil Logo

INTERWORK Compiler Directive

Abbreviation

IW

Arguments

None.

Default

NOINTERWORK

µVision

Options — CA — Misc Controls.

Description

The INTERWORK directive instructs the compiler to generate veneers for ARM/Thumb instruction set intermixing.

The CARM Compiler automatically inserts ARM/Thumb interwork code when a function is called from a different ARM/Thumb mode. The INTERWORK directive is unnecessary (and actually wastes code space) in most of these cases since the compiler inserts interwork code only where required.

When building libraries, the automatic facilities of the compiler to determine intermixing are ineffective. Subsequently, libraries that are instruction mode independent require both ARM and Thumb entry points. The INTERWORK directive solves this problem.

See Also

ARM, NOINTERWORK, THUMB

Example
CA SAMPLE.C INTERWORK

#pragma iw

Related Knowledgebase Articles

  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.