Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
GCC

GCC

Ratings: (0)|Views: 54 |Likes:
Published by Manish S Hajare

More info:

Categories:Types, Research
Published by: Manish S Hajare on May 26, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/26/2011

pdf

text

original

 
An Introduction to GCC
for the GNU Compilers
gcc
and
g++
Brian GoughForeword by Richard M. Stallman
 
A catalogue record for this book is available from the British Library.First printing, March 2004 (7/3/2004).Published by Network Theory Limited.15 Royal ParkBristolBS8 3ALUnited KingdomEmail: info
@
network-theory.co.ukISBN 0-9541617-9-3Further information about this book is available from
http://www.network-theory.co.uk/gcc/intro/
Cover Image: From a layout of a fast, energy-efficient hardware stack.
(1)
Image created with the free Electric VLSI design system by Steven Rubinof Static Free Software (www.staticfreesoft.com). Static Free Softwareprovides support for Electric to the electronics design industry.Copyrightc
2004 Network Theory Ltd.Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.2or any later version published by the Free Software Foundation; with noInvariant Sections, with the Front-Cover Texts being “A Network TheoryManual”, and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled “GNU Free DocumentationLicense”.(a) The Back-Cover Text is: “The development of this manual was fundedentirely by Network Theory Ltd. Copies published by Network TheoryLtd raise money for more free documentation.”The Texinfo source for this manual may be obtained from:
http://www.network-theory.co.uk/gcc/intro/src/
(1)
“A Fast and Energy-Efficient Stack” by J. Ebergen, D. Finchelstein, R. Kao,J. Lexau and R. Hopkins.
 
i
Table of Contents
Foreword
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . .
3
1.1 A brief history of GCC
...............................
31.2 Major features of GCC
...............................
41.3 Programming in C and C
++
...........................
41.4 Conventions used in this manual
.......................
5
2 Compiling a C program
. . . . . . . . . . . . . .
7
2.1 Compiling a simple C program
........................
72.2 Finding errors in a simple program
....................
82.3 Compiling multiple source files
........................
92.4 Compiling files independently
........................
102.4.1 Creating object files from source files
........
112.4.2 Creating executables from object files
........
112.4.3 Link order of object files
....................
122.5 Recompiling and relinking
...........................
132.6 Linking with external libraries
.......................
142.6.1 Link order of libraries
......................
152.7 Using library header files
............................
16
3 Compilation options
. . . . . . . . . . . . . . . . .
19
3.1 Setting search paths
.................................
193.1.1 Search path example
.......................
203.1.2 Environment variables
......................
213.1.3 Extended search paths
.....................
223.2 Shared libraries and static libraries
...................
233.3 C language standards
................................
253.3.1 ANSI/ISO
.................................
263.3.2 Strict ANSI/ISO
...........................
283.3.3 Selecting specific standards
.................
283.4 Warning options in
-Wall
............................
293.5 Additional warning options
..........................
30

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->