Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
C Language Features
 2012 Microchip Technology Inc.
DS52053B-page 235
stringtext
 The stringtext psect is used for const objects when compiling for 
baseline devices. This psect is linked into ROM, since the contents do not 
need to be modified.
This psect must be linked within the first half of each program memory page.
textn
 These psects (where n is a decimal number) contain all other executable code 
that does not require a special link location.
These psects can be linked anywhere in the program memory, provided they 
does not interfere with the requirements of other psects.
xxx_text 
Defines the psect for a function that has been made absolute; i.e., placed 
at an address. xxx will be the assembly symbol associated with the function. 
For example if the function rv() is made absolute, code associated with it 
will appear in the psect called _rv_text.
As these psects are already placed at the address indicated in the C source 
code, the linker options that position them should not be changed.
5.15.2.2
DATA SPACE PSECTS
nv
 These psects are used to store variables qualified persistent. They are not 
cleared or otherwise modified at startup.
These psects may be linked anywhere in their targeted memory bank and 
should not overlap any common (unbanked memory) that the device sup-
ports if it is a banked psect.
bss
 These psects contain any uninitialized variables.
These psects may be linked anywhere in their targeted memory bank and 
should not overlap any common (unbanked memory) that the device sup-
ports if it is a banked psect.
data 
These psects contain the RAM image of any initialized variables.
These psects may be linked anywhere in their targeted memory bank and 
should not overlap any common (unbanked memory) that the device sup-
ports if it is a banked psect.
cstack 
These psects contain the compiled stack. On the stack are auto and param-
eter variables for the entire program. See 5.5.4 “Absolute Variables” fo
information on the compiled stack.
These psects may be linked anywhere in their targeted memory bank and 
should not overlap any common (unbanked memory) that the device 
supports if it is a banked psect.