Keil Logo

COMMONRET Compiler Directive

Abbreviation

CR

Arguments

None.

Default

None.

µVision

Options — C166 — Misc Controls.

Description

The COMMONRET directive causes the compiler to generate function code so that each function has exactly one exit point. The effect is that the compiler no longer inserts RET instructions in the middle of a function. This may be useful with third party debugging tools for performance or code coverage analysis.

Example
C166 mycode.c COMMONRET

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