Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル
製品コード
SW006021-1
MPLAB
®
XC8 C COMPILER
USER’S GUIDE
2012 Microchip Technology Inc.
DS52053B-page 479
Appendix C. Implementation-Defined Behavior
This section discusses implementation-defined behavior for this implementation of the
MPLAB XC8 C Compiler. The exact behavior of some C code can vary from compiler
to compiler, and the ANSI standard for C requires that vendors document the specifics
of implementation-defined features of the language.
MPLAB XC8 C Compiler. The exact behavior of some C code can vary from compiler
to compiler, and the ANSI standard for C requires that vendors document the specifics
of implementation-defined features of the language.
The number in brackets after each item refers to the section number in the Standard to
which the item relates.
which the item relates.
C.1
TRANSLATION (G.3.1)
C.1.1
How a diagnostic is identified (5.1.1.3)
The format of diagnostics is fully controllable by the user. By default, when compiling
on the command-line the following formats are used. Always indicated in the display is
a unique message ID number. The string (warning) is only displayed if the message
is a warning.
on the command-line the following formats are used. Always indicated in the display is
a unique message ID number. The string (warning) is only displayed if the message
is a warning.
filename: function()
linenumber:source line
^ (ID) message (warning)
or
filename: linenumber: (ID) message (warning)
where filename is the name of the file that contains the code (or empty if not partic-
ular file is relevant); linenumber is the line number of the code (or 0 if no line number
is relevant); ID is a unique number that identifies the message; and message is the
diagnostic message itself.
ular file is relevant); linenumber is the line number of the code (or 0 if no line number
is relevant); ID is a unique number that identifies the message; and message is the
diagnostic message itself.
C.2
ENVIRONMENT (G.3.2)
C.2.1
The semantics of arguments to main (5.1.2.2.1)
The function main has no arguments, nor return value. It follows the prototype:
void main(void);