GCC Front-ends?

Jonathan Wakely jwakely.gcc@gmail.com
Sun Jun 2 19:27:00 GMT 2019


On Sun, 2 Jun 2019 at 16:53, esoteric escape <manips88@gmail.com> wrote:
>
> I was reading this page:  https://www.gnu.org/software/gcc/frontends.html
>
>
> > Currently the main GCC distribution contains front ends for C (gcc), C++
> > (g++), Objective C, Fortran, Ada (GNAT), Go, and D.
>
>
> Can you tell if gcc and g++ are front ends here? or are they complete
> compilers?

Does it matter?

How do you define a "complete compiler"?

Strictly speaking they're driver programs which can perform any step
of a compilation, from preprocessing to linking. But the different
drivers have different defaults, e.g. g++ defaults to running the C++
front end.



More information about the Gcc-help mailing list