English
Language : 

CC78K0S Datasheet, PDF (374/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
#pragma section…
#pragma section…
COMPATIBILITY
<From another C compiler to this C compiler>
• The source program need not be modified if the section name change function is not supported.
• To change the section name, modify the source program according to the procedure described in USAGE
above.
<From this C compiler to another C compiler>
• Delete #pragma section ... or delimit it with #ifdef.
• To change the section name, modify the program according to the specifications of each compiler.
RESTRICTIONS
• A section name that indicates a segment for the vector table (e.g., @@VECT02, etc.) must not be changed.
• If two or more sections with the same name as the one specifying the AT start address exist in another file, a
link error occurs.
• When changing compiler output section names @@DATS, @@BITS, and @@INIS, limit the range of the
specified address within 0FE20H to 0FED7H.
CAUTION
• A section is equivalent to a segment of the assembler.
• The compiler does not check whether the new section name is duplicated with another symbol. Therefore,
the user must check to see whether the section name is not duplicated by assembling the output assemble
list.
• If a section name (*) related to ROMization is changed by using #pragma section, the startup routine must
be changed by the user on his/her own responsibility.
(*) ROMization-related section name
@@R_INIT, @@R_INIS, @@INIT, @@INIS
The startup routine to be used when a section related to ROMization is changed, and an example of changing
the end module are described later.
374
User’s Manual U14872EJ1V0UM