Keil Logo

NAME Compiler Directive

Abbreviation

NA

Arguments

The module name for the object module

Default

NAME (basename)

µVision

This control cannot be entered with µVision.

Description

With the NAME directive, the name of the object module can be changed. The name of the object module is normally the source file name without path and file extension. The name may be up to 40 characters, a longer name is truncated at 40 characters. The purpose of the NAME directive is to create model independent libraries; when one module is contained several times, each copy is compiled with a different memory model or different function attributes like static or reentrant.

Example
C251 SAMPLE.C NAME (S1MODULE)

#pragma NAME (S2MODULE)
  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.