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

製品コード
SW006021-1
ページ / 518
Linker
 2012 Microchip Technology Inc.
DS52053B-page 281
7.2.11
-I
Usually failure to resolve a reference to an undefined symbol is a fatal error. Use of this 
option will cause undefined symbols to be treated as warnings instead.
7.2.12
-Jerrcount
The linker will stop processing object files after a certain number of errors (other than 
warnings). The default number is 10, but the -J option allows this to be altered.
7.2.13
-K
For older compilers that use a compiled stack, the linker will try and overlay function 
auto and parameter blocks to reduce the total amount of RAM required. For debugging 
purposes, this feature can be disabled with this option; however, doing so will increase 
the data memory requirements.
This option has no effect when compiled stack allocation is performed by the code gen-
erator. This is the case for OCG (PRO-Standard-Free mode) compilers, and this option 
should not be used.
7.2.14
-L
When the linker produces an output file it does not usually preserve any relocation 
information, since the file is now absolute. In some circumstances a further “relocation” 
of the program will be done at load time. The -L option will generate in the output file 
one null relocation record for each relocation record in the input.
7.2.15
-LM
Similar to the above option, this preserves relocation records in the output file, but only 
segment relocations.
7.2.16
-Mmapfile
This option causes the linker to generate a link map in the named file, or on the stan-
dard output if the file name is omitted. The format of the map file is illustrated in Section 
Section 7.4 “Map Files”.
7.2.17
-N, -Ns and-Nc
By default the symbol table in the map file will be sorted by name. The -N option will 
cause it to be sorted numerically, based on the value of the symbol. The -Ns and -Nc 
options work similarly except that the symbols are grouped by either their space value, 
or class.
7.2.18
-Ooutfile
This option allows specification of an output file name for the linker. The default output 
file name is l.obj. Use of this option will override the default.
7.2.19
-Pspec
Psects are linked together and assigned addresses based on information supplied to 
the linker via -P options. The argument to the -P option consists basically of comma 
-separated sequences thus:
-Ppsect =lnkaddr+min/ldaddr+min,psect=lnkaddr/ldaddr,...
There are several variations, but essentially each psect is listed with its desired link and 
load addresses, and a minimum value. All values may be omitted, in which case a 
default will apply, depending on previous values.