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

製品コード
SW006021-1
ページ / 518
XC8 Command-line Driver
 2012 Microchip Technology Inc.
DS52053B-page 115
4.8.55
--STRICT: Strict ANSI Conformance
The --STRICT option is used to enable strict ANSI C conformance of all special, 
non-standard keywords.
The MPLAB XC8 C compiler supports various special keywords (for example the per-
sistent
 type qualifier). If the --STRICT option is used, these keywords are changed 
to include two underscore characters at the beginning of the keyword (for example, 
__persistent
) so as to strictly conform to the ANSI standard. Thus if you use this 
option, you will need to use the qualifier __persistent in your code, not 
persistent
.
Be warned that use of this option may cause problems with some standard header files 
(e.g., <xc.h>) as they contain special keywords.
4.8.56
--SUMMARY: Select Memory Summary Output Type
Use this option to select the type of memory summary that is displayed after compila-
tion. By default, or if the mem suboption is selected, a memory summary is shown. This 
shows the total memory usage for all memory spaces.
A psect summary may be shown by enabling the psect suboption. This shows individ-
ual psects, after they have been grouped by the linker, and the memory ranges they 
cover. Table 4-16 shows what summary types are available. The output printed when 
compiling normally corresponds to the mem setting. 
4.8.57
--TIME: Report Time Taken For Each Phase of Build Process
Adding the --TIME option when building generates a summary which shows how 
much time each stage of the build process took to complete.
4.8.58
--VER: Display the Compiler’s Version Information
The --VER option will display what version of the compiler is running and then exit the 
compiler.
TABLE 4-16:
MEMORY SUMMARY SUBOPTIONS
Suboption
Controls
psect
A summary of psect names and the addresses where they were 
linked will be shown.
mem
A concise summary of memory used will be shown. (default)
class
A summary of all classes in each memory space will be shown.
hex
A summary of addresses and HEX files which make up the final 
output file will be shown.
file
Summary information will be shown on screen and saved to a file.