Compilers: Difference between revisions

From Micro and Nano Mechanics Group
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== GCC ==
== GCC (GNU Compiler Collection) ==
From [http://en.wikipedia.org/wiki/GNU_Compiler_Collection wikipedia],
From [http://en.wikipedia.org/wiki/GNU_Compiler_Collection wikipedia],
<blockquote>
<blockquote>
Line 10: Line 10:
'''g++''' (GNU C++) is a C++ compiler, part of GCC.
'''g++''' (GNU C++) is a C++ compiler, part of GCC.
=== gfortran ===
=== gfortran ===
'''gfortran''' is a Fortran compiler, part of GCC and still in the early stage of development. It will be expected to handle most Fortran codes written in Fortran 77, Fortran 90, Fortran 95 or Fortran 2003.<ref>http://gcc.gnu.org/onlinedocs/gfortran/About-GNU-Fortran.html#About-GNU-Fortran</ref>
'''gfortran''' is a Fortran compiler, part of GCC.

=== g77 ===
=== g77 ===
'''g77''' is the ancestor of '''gfortran''' and was included in GCC prior to version 4.<ref> http://gcc.gnu.org/onlinedocs/gfortran/GNU-Fortran-and-G77.html#GNU-Fortran-and-G77 </ref>
'''g77''' is the ancestor of '''gfortran''' and was included in GCC prior to version 4.<ref> http://gcc.gnu.org/onlinedocs/gfortran/GNU-Fortran-and-G77.html#GNU-Fortran-and-G77 </ref>


----

== Unix C/C++ Compilers ==

=== cc ===

Unix C compiler. In Linux, cc is a symbolic link to gcc.

=== CC ===

Sun C++ compiler

----

== Intel Compilers ==
[http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284264.htm Intel compilers] usually accelerate program speed. See [http://en.wikipedia.org/wiki/Intel_C++_Compiler WIKI]
=== icc ===
Intel C/C++ compiler

=== ifort ===
Intel Fortran compiler

----

== PGI Compilers ==
[http://en.wikipedia.org/wiki/PGI_compiler PGI compilers] are Fortran and C/C++ compilers developed and provided by the [http://www.pgroup.com Portland Group]. The PGI compiler commands are '''pgf77''', '''pgf90''', '''pgf95''', '''pgcc''' and '''pgCC'''. The Portlad group provides pdf form of [http://www.pgroup.com/doc/pgiug.pdf the user guide].

=== pgf77 ===
'''pgf77''' is Fortran 77 compiler command. For quick help for the usage of swithes, type the following command at the shell prompt
$ pgf77 -help
=== pgf95 ===
Fortran 90/95 compiler command.
=== pgf90 ===
This command is identical with '''pgf95'''. It remains just for compatibility.
=== pgcc ===
C compiler command
=== pgCC ===
C++ compiler command


----
=== Notes ===
== Notes ==
<references/>
<references/>

Latest revision as of 00:17, 2 October 2008

GCC (GNU Compiler Collection)

From wikipedia,

"GCC (GNU Compiler Collection) is a set of compilers for various language (C, C++, Objective-C, Objective-C++, Fortran, Java and Ada) produced by the GNU Project."

gcc

GNU project C and C++ compiler. When used for C++ compilation, it internally calls g++ but it does not point all the standard C++ libraries. Make sure that you include -lstdc++ in this case. When GCC is compiled with Fortran language support, gcc recognizes Fortran source codes (.f, .for, .ftn, .f90, .f95 and .f03) and can compile them.[1]

g++

g++ (GNU C++) is a C++ compiler, part of GCC.

gfortran

gfortran is a Fortran compiler, part of GCC and still in the early stage of development. It will be expected to handle most Fortran codes written in Fortran 77, Fortran 90, Fortran 95 or Fortran 2003.[2]

g77

g77 is the ancestor of gfortran and was included in GCC prior to version 4.[3]


Unix C/C++ Compilers

cc

Unix C compiler. In Linux, cc is a symbolic link to gcc.

CC

Sun C++ compiler


Intel Compilers

Intel compilers usually accelerate program speed. See WIKI

icc

Intel C/C++ compiler

ifort

Intel Fortran compiler


PGI Compilers

PGI compilers are Fortran and C/C++ compilers developed and provided by the Portland Group. The PGI compiler commands are pgf77, pgf90, pgf95, pgcc and pgCC. The Portlad group provides pdf form of the user guide.

pgf77

pgf77 is Fortran 77 compiler command. For quick help for the usage of swithes, type the following command at the shell prompt

$ pgf77 -help

pgf95

Fortran 90/95 compiler command.

pgf90

This command is identical with pgf95. It remains just for compatibility.

pgcc

C compiler command

pgCC

C++ compiler command


Notes