C251 User's Guide

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)