3. GNU Compilers

The Gnu Compiler Collection (GCC), which is installed on Cosmos, includes C, C++ and Objective C compilers. The Gnu compilers are available for a great many platforms including mosts Unices and represent something of a standard --- if you want your code to be portable, development with these compilers is a good idea. Virtually all free and open-source software is developed with these compilers --- use them for compilation of such applications and utilities.

The C and C++ compilers are integrated. The compiler may be accessed through the commands gcc and g++, thus
     gcc <source_file> 
or
     g++ <source_file> 
gcc assumes C-style linking; g++ assumes (C++)-style linking. The full paths are /usr/local/bin/gcc and /usr/local/bin/g++ which may be needed if /usr/local/bin/ is not on your path.

Suffixes of source file names indicate the language and kind of processing to be done:

Suffices

.c C source;
.C C++ source;
.cc C++ source;
.cxx C++ source;
.m Objective-C source;
.i preprocessed C.

Suffices imply assumed source language

The Gnu homepage for GCC may be accessed via the Gnu site at gcc.gnu.org; full documentation for the Compiler Collection on-line via that site at /onlinedocs --- the C/C++ section is at /onlinedocs/gcc.html.

ISD offers no support for these compilers other than this documentation.


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_compilers_unix_c/_reml_grp/compilers_C.reml
On: 20/2/2002 at 10:4:39
Options: reml2 -i noindex -l long -o html -p multiple