Compiling Programs with gcc

The C and C++ compiler included with Linux is gcc. This compiler supports all the latest features that would be expected from a commercial compiler, including a very good code optimizer (better than some compilers costing a significant amount of money), support for ANSI C and C++, C++ templates and template classes, and the C++ Standard Template Library. The gcc compiler is part of a complete development system, including a debugger (gdb), a profiler (gprof), various code-processing tools (such as make), and the runtime library itself.

The gcc program provides a front end to several compilers and allows you to compile C, C++, and other languages from a single command. The program manages this "magic" by expecting certain ...

Get Practical Linux 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.