ic960 Compiler Driver
3-11
3
ic960 and File Use
The compiler, assembler, and linker all use filenames specified on the
ic960 command line to find and create input and output files. In addition,
translation and linking require temporary work files. Environment
variables allow specification of default directories for work files.
Input Files
The ic960 command line allows filename inputs that support specification
of assembly-language files, preprocessed source files, C source files,
object files, and libraries. The compiler driver determines the type of each
input file by the filename extension, as follows:
filename
.c indicates a C source file that can contain macros
and preprocessor directives.
filename
.i indicates a preprocessed C source file.
filename
.s indicates an assembly-language source file.
The driver passes any other filename to the linker. The linker then
determines whether the file is an object file, library, or configuration file.
Input files not needed for processing are not processed. For example, if
you specify an assembly-language (
filename
.s) file and also specify the
S (Save assembly) stop-after option, ic960 takes no action on the
assembly-language file because processing stops after compilation and
before assembly.
Include Files
The ic960 command line allows insertion of text from include files. Both
the
i (Preinclude) option and the #include preprocessor directive cause
text insertion.