O'Reilly logo

A Practical Guide to Linux® Commands, Editors, and Shell Programming, Third Edition by Mark G. Sobell

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

Options

Without any options gcc accepts C language source files, assembly language files, object files, and other files described in Table VI-18 on page 828. The gcc utility preprocesses, compiles, assembles, and links these files as appropriate, producing an executable file named a.out. When you create object files without linking them to produce an executable file, gcc names each object file by adding the extension .o to the basename of the corresponding source file. When you create an executable file, gcc deletes the object files after linking.

Table VI-18. Filename extensions

Image

Some of the most commonly used options are listed here. When 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