1.7 A Real-life Compiler – gcc

The GNU C compiler gcc is arguably the best compiler available for C language. In fact it is a suite of compilers, as the package contains g++ − a compiler for C++, and facilities to compile other languages like Objective-C and Objective-C++, FORTRAN in both fixed form and free form (i.e. F90 and F95 versions), ADA, Java. It can handle different dialects of C.

It is also able to generate executable code for the following CPU families: ARC, ARM, AVR, Darwin, DEC Alpha, HPPA, i386 and x86-64, IA-64, Motorola M680x0, MIPS, PDP-11, PowerPC, RS/6000, S/390, SPARC, TMS320C3x/C4x and others.

Thus, gcc is a good example of the ideas presented in Section 1.5.

When you invoke GCC, it normally does pre-processing, compilation, ...

Get Compilers: Principles and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.