Keil Logo

CODE Compiler Directive

Abbreviation

CD

Arguments

None.

Default

No assembly code listing is generated.

µVision

Options — Listing — C Compiler Listing — Assembly Code.

Description

The CODE directive appends an assembly mnemonics list to the listing file. The assembler code is represented for each function contained in the source program. By default, no assembly code listing is included in the listing file.

Refer to the Listing File for an assembly listing example.

Example
C251 SAMPLE.C CD

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