English
Language : 

CC78K0S Datasheet, PDF (381/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
(17) Module name changing function
Module Name Changing Function
#pragma name
FUNCTION
• Outputs the first eight letters of the specified module name to the symbol information table in a object module
file.
• Outputs the first eight letters of the specified module name to the assemble list file as symbol information
(MOD_NAM) when -G2 is specified and as the NAME quasi directive when -NG is specified.
• If a module name with nine or more letters is specified, a warning message is output.
• If unauthorized letters are described, an error occurs and the processing is aborted.
• If more than one of this #pragma directive exists, a warning message is output, and whichever directive is
described later is enabled.
EFFECT
• The module name of an object can be changed to any name.
USAGE
• The following shows the description method.
#pragma name module name
A module name must consist of the characters that the OS authorizes as a file name except ‘(‘ ‘)’. Upper case
and lowercase letters are distinguished.
EXAMPLE
#pragma name module1
.
.
.
COMPATIBILITY
<From another C compiler to this C compiler>
• Modifications are not needed if the compiler does not support the module name changing function.
• To change a module name, modifiy according to USAGE above.
<From this C compiler to another C compiler>
• Delete #pragma name . . . or delimit it with #ifdef.
• To change a module name, modify the program according to the specifications of each compiler.
User’s Manual U14872EJ1V0UM
381