Oracle® Solaris Studio 12.4: C++ User's Guide

Exit Print View

Updated: March 2015
 
 

2.4.6 Understanding the Compiler Organization

The C++ compiler package consists of a front end, optimizer, code generator, assembler, template prelinker, and link editor. The CC command invokes each of these components automatically unless you use command-line options to specify otherwise.

Because any of these components may generate an error, and the components perform different tasks, identifying the component that generates an error might be helpful. Use the -v and -dryrun options to display more detail during compiler execution.

As shown in the following table, input files to the various compiler components have different file name suffixes. The suffix establishes the kind of compilation that is done. Refer to Table 2–1 for the meanings of the file suffixes.

Table 2-2  Components of the C++ Compilation System
Component
Description
Notes on Use
ccfe
Front end (compiler preprocessor and compiler)
iropt
Code optimizer
-xO[2-5], -fast
inline
SPARC: Inline expansion of assembly language templates
.il file specified
fbe
Assembler
cg
SPARC: Code generator, inliner, assembler
-xO[1-5], -fast, -std=c++11
ube
x86: Code generator
-xO[1-5], -fast, -std=c++11
CClink
Template prelinker
Used only with the -instances=extern option
ld
link editor