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

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 310
 2012 Microchip Technology Inc.
8.6.1.13
-MASK
Use this option to logically AND a memory range with a particular bitmask. This is used 
to ensure that the unimplemented bits in program words (if any) are left blank. The 
usage of this option is as follows:
-MASK=hexcode@start-end
Where hexcode is a hexadecimal value that will be ANDed with data within the start 
to end address range. Multibyte mask values can be entered in little endian byte order.
8.6.1.14
-OFILE 
The generated Intel HEX output will be created in this file. For example:
-Oprogram.hex
will save the resultant output to program.hex. The output file can take the same name 
as one of its input files, but by doing so it will replace the input file entirely.
8.6.1.15
-SERIAL
This option will store a particular HEX value at a fixed address. The usage of this option 
is:
-SERIAL=Code [+/-Increment]@Address [+/-Interval][rRepetitions]
where:
• Code is a hexadecimal value to store and is entered in little endian byte order.
• Increment is optional and allows the value of Code to change by this value with 
each repetition (if requested).
• Address is the location to store this code, or the first repetition thereof.
• Interval is optional and specifies the address shift per repetition of this code.
• Repetitions is optional and specifies the number of times to repeat this code.
For example:
-SERIAL=000001@EFFE
will store HEX code 00001h to address EFFEh.
Another example:
-SERIAL=0000+2@1000+10r5
will store 5 codes, beginning with value 0000 at address 1000h. Subsequent codes 
will appear at address intervals of +10h and the code value will change in increments 
of +2h.
8.6.1.16
-SIZE
Using the -SIZE option will report the number of bytes of data within the resultant HEX 
image to standard output. The size will also be recorded in the log file if one has been 
requested.