70Chapter3 • Compilers and Assemblers
gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../.. /tmp/
ccBgJjpa.o /tmp/cchm92Nc.o -lgcc -lgcj -lm -lgcjgc -lpthread -
lzgcj -ldl -lgcc -lc -lgcc /opt/gcc-3.0.4/lib/gcc-lib/i686-pc-
linux-gnu/3.0.4/crtend.o /usr/lib/crtn.o
[rr@conformix 4]$
As you can see, different programs have been executed to get the output binary file. These
programs include:
•The
jcl
program
•GNU assembler as. Again as is the name of the assembler.
as
•The
jvgenmain
program
•The
cc1
compiler
•The
collect2
program
You can also see various command line switches used with these programs.
3.3.8Summary of gcc Options
Hundreds of options can be used with
gcc
on command line. Explanation of all of these
options is beyond the scope of this book. However, following is a summary list of these options
as displayed by
gcc
man page (using
man gcc
command). Options are grouped in different
sections which will be helpful for you if you are looking for options related to a particular task.
3.3.8.1Overall Options
-c
-S
-E
-o file
-pipe
-pass-exit-codes
-x language
-v
--target-help
--help
3.3.8.2C Language Options
-ansi
-std=standard
-aux-info filename
-fno-asm
-fno-builtin
-fhosted
-ffree-standing
-trigraphs
-traditional