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

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 234
 2012 Microchip Technology Inc.
intentry
 Contains the entry code for the interrupt service routine which is linked to 
the interrupt vector. This code saves the necessary registers and jumps to 
the main interrupt code in the case of mid-range devices; for enhanced 
mid-range devices this psect will contain the interrupt function body. (PIC18 
devices use the intcode psects.)
This psect must be linked at the interrupt vector. Do not change the default 
linker options relating to this psect. See the --CODEOFFSET option 
Section 4.8.22 “--CODEOFFSET: Offset Program Code to Address” if 
you want to move code when using a bootloader.
jmp_tab
 Only used for the baseline processors, this is a psect used to store jump 
addresses and function return values.
Do not change the default linker options relating to this psect.
maintext
 This psect will contain the assembly code for the main() function. The 
code for main() is segregated as it contains the program entry point.
Do not change the default linker options relating to this psect as the runtime 
startup code may “fall through” into this psect which requires that it be linked 
immediately after this code.
mediumconst
 These PIC18-only psects hold objects that are declared const and 
string literals which are not modifiable. Used when the total amount of const 
data in a program exceeds 255 bytes, but does not exceed 64k.
This psect can be linked anywhere in the lower 64k of program memory, pro-
vided it does not interfere with the requirements of other psects. For PIC18 
devices, the location of the psect must be above the highest RAM address.
powerup
 Contains executable code for a user-supplied power-up routine.
Do not change the default linker options relating to this psect.
reset_vec
 This psect contains code associated with the Reset vector.
Do not change the default linker options relating to this psect as it must be 
linked to the Reset vector location of the target device. See the
--CODEOFFSET
Code to Address” if you want to move code when using a bootloader.
reset_wrap 
For baseline PIC devices, this psect contains code which is executed 
after the device PC has wrapped around to address 0x0 from the oscillator 
calibration location at the top of program memory.
Do not change the default linker options relating to this psect as it must be 
linked to the Reset vector location of the target device.
smallconst
 These psects hold objects that are declared const and string literals 
which are not modifiable. Used when the total amount of const data in a 
program is less than 255 bytes.
This psect can be linked anywhere in the program memory, provided it does 
not cross a 0x100 boundary and it does not interfere with the requirements 
of other psects. For PIC18 devices, the location of the psect must be above 
the highest RAM address.
strings
 The strings psect is used for const objects. It also includes all unnamed 
string literals. This psect is linked into ROM, since the contents do not need 
to be modified.
This psect can be linked anywhere in the program memory, provided it does 
not cross a 0x100 boundary or interfere with the requirements of other 
psects.