Keil Logo

REMOVEUNUSED Linker Directive

Abbreviation

RU

Arguments

None.

Default

None.

µVision

Options — L251 Misc — Misc Controls.

Description

The REMOVEUNUSED directive removes unused program and data segments provided that Data Overlaying is enabled. When you apply this directive unused functions along with the related data segments are deleted in the final executable program.

 

  • Unused functions may not be removed if used by tail optimization (OPTIMIZE 7).
Example
L251 myfile.obj REMOVEUNUSED
  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.