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

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 74
 2012 Microchip Technology Inc.
There are no compiler restrictions imposed on the names of source files, but be aware 
of case, name-length and other restrictions imposed by your operating system. If you 
are using an IDE, avoid assembly source files whose basename is the same as the 
basename of any project in which the file is used. This may result in the source file 
being overwritten by a temporary file during the build process.
The terms “source file” and “module” are often used when talking about computer 
programs. They are often used interchangeably, but they refer to the source code at 
different points in the compilation sequence.
A source file is a file that contains all or part of a program. They may contain C code, 
as well as preprocessor directives and commands. Source files are initially passed to 
the preprocessor by the driver.
A module is the output of the preprocessor, for a given source file, after inclusion of any 
header files (or other source files) which are specified by #include preprocessor 
directives. All preprocessor directives and commands (with the exception of some com-
mands for debugging) have been removed from these files. These modules are then 
passed to the remainder of the compiler applications. Thus, a module may be the amal-
gamation of several source and header files. A module is also often referred to as a 
translation unit. These terms can also be applied to assembly files, as they can include 
other header and source files.