<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=GCC</id>
		<title>GCC - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=GCC"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=GCC&amp;action=history"/>
		<updated>2026-05-01T06:43:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=GCC&amp;diff=1486&amp;oldid=prev</id>
		<title>Minal: Created page with ''''You are here''': Main Page &gt;&gt; GCC  == Introduction ==  GNU Compiler Collection (GCC) is open source compiler system supporting various languages like C, C++, Java etc. GCC…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=GCC&amp;diff=1486&amp;oldid=prev"/>
				<updated>2012-12-11T10:36:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;You are here&amp;#039;&amp;#039;&amp;#039;: &lt;a href=&quot;/index.php/Main_Page&quot; title=&quot;Main Page&quot;&gt;Main Page&lt;/a&gt; &amp;gt;&amp;gt; GCC  == Introduction ==  GNU Compiler Collection (GCC) is open source compiler system supporting various languages like C, C++, Java etc. GCC…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''You are here''': [[Main Page]] &amp;gt;&amp;gt; GCC&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
GNU Compiler Collection (GCC) is open source compiler system supporting various languages like C, C++, Java etc. GCC was initially developed as C compiler but later extended for languages like C++, Fortran, Pascal. Various Unix and Linux flavors have accepted GCC as standard compiler. Also GCC is available for embedded platforms. This documentation assumes that the reader has fair knowledge of C, C++ programming and Unix commands.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These tutorials are created using GCC version 4.5.1. Please see the associated text box of individual spoken tutorials on the website to decide the versions of GCC and OS to which it is applicable. &lt;br /&gt;
&lt;br /&gt;
The Spoken Tutorial Effort for GCC is being contributed by Amit Gaikwad from IIT-Bombay. Other contributors who helped in the creation of the scripts are Gaurav Lahoti, IIT-Bombay and Abhishek, IIT-Bombay.&lt;br /&gt;
&lt;br /&gt;
[http://www.spoken-tutorial.org/wiki/index.php/File:Slides.zip Slide Template for GCC]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The GCC usage can be divided into following three levels Basic level, Intermediate level and Advanced level.&lt;br /&gt;
&lt;br /&gt;
=== Basic Level ===&lt;br /&gt;
&lt;br /&gt;
Basic level covers simple compilation of C programs. Also it covers understanding basic level warnings generated while compiling the C program and use of preprocessor. Additionally, it covers C++ topics like Compilation of C++ program and Warning options related to C++.&lt;br /&gt;
        &lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Compilation Compilation of C programs]====&lt;br /&gt;
*	Compilation of single file.&lt;br /&gt;
*	Compilation with specifying output file.&lt;br /&gt;
*	Compilation of multiple files.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/C++_Compilation Compilation of C++ programs]====&lt;br /&gt;
*	Compilation of  C++ program.&lt;br /&gt;
*	Various compilation flags.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Warning_Options_Part_I Basic GCC Warning Options]====&lt;br /&gt;
*Discussing various GCC warning options for beginners.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Warning_Options_Part_II Advanced GCC Warning Options]====&lt;br /&gt;
*Discussing various GCC warning options in an advanced level.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/C++_Warnings_Part_I Basic C++ Warning Options]====&lt;br /&gt;
*Discussing various C++ specific warning options at the basic level.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/C++_Warnings_Part_II Advanced C++ Warning Options]====&lt;br /&gt;
*C++ specific warning options in an advanced level.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Use_Of_Preprocessor Use Of Preprocessor]====&lt;br /&gt;
*Defining a macro.&lt;br /&gt;
*Defining value for a macro.&lt;br /&gt;
*Preprocessing the source file.&lt;br /&gt;
&lt;br /&gt;
=== Intermediate Level ===&lt;br /&gt;
&lt;br /&gt;
Intermediate level covers creation of make files, compilation using make files, linking shared and static libraries and understanding debugging using gdb. Also it covers C++ topics like templates and  Standard Template Library.&lt;br /&gt;
	&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Using_Static_And_Shared_Library Creation and use of Library]====&lt;br /&gt;
*Static library.&lt;br /&gt;
*Shared library.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Using_Makefiles Using Make files]====&lt;br /&gt;
*Building executable using make file.&lt;br /&gt;
*Building library using make file.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Debugging Debugging]====&lt;br /&gt;
*Debugging a program.&lt;br /&gt;
*Debugging using core file.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/C++_Templates C++ Templates]====&lt;br /&gt;
*Use of Function templates.&lt;br /&gt;
*Use of Class templates.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/C++_STL C++ Standard Template Library]====&lt;br /&gt;
* Use of Containers and Algorithms&lt;br /&gt;
&lt;br /&gt;
=== Advanced Level ===&lt;br /&gt;
&lt;br /&gt;
Advanced level covers optimization and profiling.&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Profiling_and_Coverage_tool Profiling and Coverage tool]====&lt;br /&gt;
*Use of profiler tool gprof.&lt;br /&gt;
*Use of coverage tool gcov.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/GCC_Optimization Optimization]====&lt;br /&gt;
*Discussion of various optimization levels.&lt;br /&gt;
*Use of optimization levels.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
In this section, we will cover installation of GCC. &lt;br /&gt;
=== [http://spoken-tutorial.org/wiki/index.php/GCC_Installation GCC Installation] ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Useful tools ==&lt;br /&gt;
In this section, we will discuss various tools useful for C, C++ developer.&lt;br /&gt;
 &lt;br /&gt;
=== Doxygen ===&lt;br /&gt;
&lt;br /&gt;
This is a documentation tool for C++, C. Doxygen can generate documentation in HTML format. Also it can develop documentation in RTF, PostScript, hyperlinked PDF, compressed HTML and Unix man page format. It extracts documentation from source code and thus can provide consistent documentation with source code.&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/Doxygen_usage_and_installation Doxygen usage and installation]====&lt;br /&gt;
*Doxygen installation.&lt;br /&gt;
*Doxygen usage.&lt;br /&gt;
*Documenting the code in Doxygen commenting style.&lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/Doxygen_configuration_file Doxygen configuration file]====&lt;br /&gt;
*Doxygen configuration file.&lt;br /&gt;
*Doxywizard tool and its usage.&lt;br /&gt;
&lt;br /&gt;
=== Cscope ===&lt;br /&gt;
This tool is used for browsing the source code. It can be used for C, C++. It helps in finding C symbol, global definition, a text string, replacing a text string, finding functions called by a function, finding functions calling a function, finding egrep pattern, finding a file, finding files including this file. &lt;br /&gt;
&lt;br /&gt;
====[http://spoken-tutorial.org/wiki/index.php/Cscope_usage_and_installation Cscope usage and installation]====&lt;br /&gt;
*Cscope installation.&lt;br /&gt;
*Cscope usage.&lt;br /&gt;
*Cscope User Interface.&lt;/div&gt;</summary>
		<author><name>Minal</name></author>	</entry>

	</feed>