Основы программирования в Linux | страница 27



>SYNOPSIS

>       gcc [-с|-S|-E] [-std=standard]

>           [-g] [-pg] [-Olevel]

>           [-Wwarn...] [-pedantic]

>           [-Idir...] [-Ldir...]

>           [-Dmacro[=defn]...] [-Umacro]

>           [-foption...] [-mmachine-option...]

>           [-о outfile] infile...

>       Only the most useful options are listed here; see below

>       for the remainder. g++ accepts mostly the same options as

>       gcc.

>DESCRIPTION

>       When you invoke GCC, it normally does preprocessing, com-

>       pilation, assembly and linking. The "overall options"

>       allow you to stop this process at an intermediate stage.

>       For example, the -c option says not to run the linker.

>       Then the output consists of object files output by the assembler.


>       Other options are passed on to one stage of processing.

>       Some options control the preprocessor and others the com-

>       piler itself. Yet other options control the assembler and

>       linker; most of these are not documented here, since we

>       rarely need to use any of them.

>...

Если хотите, можно прочесть об опциях, поддерживаемых транслятором. В этом случае справочное руководство очень длинное, хотя содержит лишь малую часть полной документации по компилятору GNU С (и С++).

При чтении справочных страниц можно использовать клавишу <Пробел> для перехода к следующей странице, клавишу (или клавишу , если на вашей клавиатуре применяется эта клавиша вместо ) для перехода к следующей строке и клавишу для полного выхода из программы.

2. Для получения более подробной информации о компиляторе GNU С можно попробовать применить команду >info.

>$ info gcc

>File: gcc.info. Node: Top, Next: G++ and GCC, Up: (DIR)

>Introduction

>************


>   This manual documents how to use the GNU compilers, as well as their

>features and incompatibilities, and how to report bugs. It corresponds to

>GCC version 4.1.3. The internals of the GNU compilers, including how to port

>them to new targets and some information about how to write front ends for

>new languages, are documented in a separate manual.

>*Note Introduction: (gccint)Top.


>*Menu:


>* G++ and GCC:: You can compile С or С++ Applications.

>* Standards:: Language standards supported by GCC,

>* Invoking GCC:: Command options supported by `gcc'.

>* С Implementation:: How GCC implements theISO С specification.

>* С Extensions:: GNU extensions to the С language family.

>* С++ Extensions:: GNU extensions to the С++ language.