01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CH03.fm Page 70 Monday, October 7, 2002 8:33 PM<br />

70 Chapter 3 • Compilers <strong>and</strong> Assemblers<br />

gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../.. /tmp/<br />

ccBgJjpa.o /tmp/cchm92Nc.o -lgcc -lgcj -lm -lgcjgc -lpthread -<br />

lzgcj -ldl -lgcc -lc -lgcc /opt/gcc-3.0.4/lib/gcc-lib/i686-pclinux-gnu/3.0.4/crtend.o<br />

/usr/lib/crtn.o<br />

[rr@conformix 4]$<br />

As you can see, different programs have been executed to get the output binary file. <strong>The</strong>se<br />

programs include:<br />

• <strong>The</strong> jcl program<br />

• GNU assembler as. Again as is the name of the assembler. as<br />

• <strong>The</strong> jvgenmain program<br />

• <strong>The</strong> cc1 compiler<br />

• <strong>The</strong> collect2 program<br />

You can also see various comm<strong>and</strong> line switches used with these programs.<br />

3.3.8 Summary of gcc Options<br />

Hundreds of options can be used with gcc on comm<strong>and</strong> line. Explanation of all of these<br />

options is beyond the scope of this book. However, following is a summary list of these options<br />

as displayed by gcc man page (using man gcc comm<strong>and</strong>). Options are grouped in different<br />

sections which will be helpful for you if you are looking for options related to a particular task.<br />

3.3.8.1 Overall Options<br />

-c<br />

-S<br />

-E<br />

-o file<br />

-pipe<br />

-pass-exit-codes<br />

-x language<br />

-v<br />

--target-help<br />

--help<br />

3.3.8.2 C Language Options<br />

-ansi<br />

-std=st<strong>and</strong>ard<br />

-aux-info filename<br />

-fno-asm<br />

-fno-builtin<br />

-fhosted<br />

-ffree-st<strong>and</strong>ing<br />

-trigraphs<br />

-traditional

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!