You can specify the following types of output files when invoking IBM VisualAge C++ batch compilers.
|Executable File||By default, executable files are named a.out. To name the
executable file something else, use the -ofile_name
option with the invocation command. This option creates an executable file with the name
you specify as file_name. The name you specify can be a relative or absolute path
name for the executable file.
The format of the a.out file is described in the AIX Version 4 Files Reference.
|Object Files||Object files must have a .o suffix, for example, year.o,
unless the -ofilename option is specified.
If you specify the -c option, an output object file, file_name.o, is produced for each input source file file_name.c. The linkage editor is not invoked, and the object files are placed in your current directory. All processing stops at the completion of the compilation.
You can link-edit the object files later into a single executable file using the xlC command.
|Assembler Files||Assembler files must have a .s suffix, for example, check.s.
They are created by specifying the -S option. Assembler files are assembled to create an object file.
|Preprocessed Source Files||Preprocessed source files have a .i suffix, for example,
To make a preprocessed source file, specify the -P option. The source files are preprocessed but not compiled. You can also use redirect the output from the -E option to generate a preprocessed file that contains #line directives.
A preprocessed source file, file_name.i, is produced for each source file, file_name.c.
|Listing Files||Listing files have a .lst suffix, for example, form.lst.
Specifying any one of the listing-related options to the invocation command produces a compiler listing (unless you have specified the -qnoprint option). The file containing this listing is placed in your current directory and has the same file name (with a .lst extension) as the source file from which it was produced.
|Target File||Output files associated with the -M
or -qmakedep options have a .u suffix, for example,
The file contains targets suitable for inclusion in a description file for the AIX make command. A .u file is created for every input C or C++ file. .u files are not created for any other files (unless you use the -+ option so other file suffixes are treated as .C files).
Types of Input Files