| An Introduction to GCC - for the GNU compilers gcc and g++ by Brian J. Gough, foreword by Richard M. Stallman Paperback (6"x9"), 144 pages ISBN 0954161793 RRP £12.95 ($19.95) "A wonderfully thorough guide... well-written, seriously usable information" --- Linux User and Developer Magazine (Issue 40, June 2004) Get a printed copy>>> |
9.1 Help for command-line options
To obtain a brief reminder of various command-line options, GCC provides a help option which displays a summary of the top-level GCC command-line options:
$ gcc --help
To display a complete list of options for gcc and its associated
programs, such as the GNU Linker and GNU Assembler, use the help option
above with the verbose (-v) option:
$ gcc -v --help
The complete list of options produced by this command is extremely
long--you may wish to page through it using the more command, or
redirect the output to a file for reference:
$ gcc -v --help 2>&1 | more
| ISBN 0954161793 | An Introduction to GCC - for the GNU compilers gcc and g++ | See the print edition |