Keil Logo

RENAMECODE Compiler Directive

Abbreviation

RC

Arguments

The new name of a code segment.

Default

No code segment renaming takes place.

µVision

This control cannot be entered with µVision.

Description

With the RENAMECODE directive, you can give a code segment a different name. RENAMECODE can be used only if ROM(HUGE) or ROM(MEDIUM) is specified, since all functions of a module must reside in a single code segment. For all other ROM settings, each function compiles into a separate code segment and the RENAMECODE directive is ignored.

Example
C251 SAMPLE.C ROM(HUGE) RENAMECODE (?PR?COMMONSEG)

#pragma renamecode(?PR?MYSEG)
  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.