Compilers: Difference between revisions
Jump to navigation
Jump to search
(→GCC) |
(→GCC) |
||
| Line 6: | Line 6: | ||
=== gcc === |
=== 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.<ref>http://gcc.gnu.org/onlinedocs/gfortran/GNU-Fortran-and-GCC.html#GNU-Fortran-and-GCC</ref> |
|||
=== g++ === |
=== g++ === |
||
'''g++''' (GNU C++) is a C++ compiler, part of GCC. |
|||
=== gfortran === |
=== gfortran === |
||
'''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> |
||
Revision as of 22:56, 2 December 2007
GCC
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.
g77
g77 is the ancestor of gfortran and was included in GCC prior to version 4.[2]