Keil Logo

SRC Compiler Directive

Abbreviation

None.

Arguments

SRC 〚(filename)〛

Default

None.

µVision
  1. Right click on the file in the Project Window — Files tab
  2. Choose Options for... to open Options — Properties page
  3. Enable Generate Assembler SRC file
  4. Enable Assemble SRC file.
Description

The SRC directive creates an assembler source (.SRC) file instead of an object (.OBJ) file. The source file may be assembled with the assembler. Refer to Source (SRC) File for more information regarding assembler source files.

The source file is saved as filename if specified. Otherwise, the source file is saved as the path and base name of the C source file with a .SRC extension.

Note

  • The compiler cannot simultaneously produce a source file and an object file.
See Also

ASM, ENDASM

Example
C166 SAMPLE.C SRC

C166 SAMPLE.C SRC(SML.ASM)

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