English
Language : 

CC78K0S Datasheet, PDF (369/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
#pragma section…
#pragma section…
• The format in which the new section name is to be described must conform to the assembler specifications
(up to eight letters can be used for a segment name).
• Only the hexadecimal numbers of the C language and the hexadecimal numbers of the assembler can be
described as the start address.
[Hexadecimal numbers of C language]
0xn / 0xn...n
0Xn / 0xn...n
(n = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F)
[Hexadecimal numbers of assembler]
nH/n...nH
nh/n...nh
(n = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F)
• The hexadecimal number must start with a numeral.
Example: To express a numeric value with a value of 255 as a hexadecimal number, specify zero before F.
It is therefore 0FFH.
• For sections other than the @@CNST section in CSEG, that is, sections in which functions are located, this
#pragma directive cannot be described other than at the beginning of the C source (after the C text is
described); otherwise it causes an error.
• If this #pragma directive is executed after the C text is described, an assembler source file is created without
an object module file being created.
• If this #pragma directive is after the C text is described, a file that contains this #pragma directive and that
does not have the C text (including external reference declarations for variables and functions) cannot be
included. This results in an error (refer to the error description in Example 1).
• An #include statement cannot be described in a file that executes this #pragma directive following the C text
description. If described, it causes an error. (refer to the following error description in Example 2).
• If the #include statement follows the C text, this #pragma directive cannot be described after this description.
If described, it causes an error (refer to the following error description in Example 3).
User’s Manual U14872EJ1V0UM
369