O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required