Output from the Compiler

The fundamental purpose of the compiler is to produce object files, libraries containing object files, and executable programs. But it is also possible to use the compiler to get other types of output. It is not very often that you find yourself in a position of needing this information, but the compiler can be very helpful in some special situations where clues to a problem are scarce.

Options are available that make it possible for you to discover what the compiler thinks your program means syntactically, where the compiler searches for subprocesses and libraries, and get a listing of the intermediate language produced from parsing your program. You can get a complete listing of all the header files included by a program, and you can automatically generate a dependency statement for a makefile based on the source code.

Was this article helpful?

0 0

Post a comment