📄 00000001.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER> <BR> <BR> <BR> <BR>GCC(1) GNU Tools GCC(1) <BR> <BR> <BR>NAME <BR> gcc, g++ - GNU project C and C++ Compiler (v2.6) <BR> <BR>SYNOPSIS <BR> gcc [ option | filename ]... <BR> g++ [ option | filename ]... <BR> <BR>WARNING <BR> The information in this man page is an extract from the <BR> full documentation of the GNU C compiler, and is limited <BR> to the meaning of the options. <BR> <BR> This man page is not kept up to date except when volun- <BR> teers want to maintain it. If you find a discrepancy <BR> between the man page and the software, please check the <BR> Info file, which is the authoritative documentation. <BR> <BR> If we find that the things in this man page that are out <BR> of date cause significant confusion or complaints, we will <BR> stop distributing the man page. The alternative, updating <BR> the man page when we update the Info file, is impossible <BR> because the rest of the work of maintaining GNU CC leaves <BR> us no time for that. The GNU project regards man pages as <BR> obsolete and should not let them take time away from other <BR> things. <BR> <BR> For complete and current documentation, refer to the Info <BR> file `gcc' or the manual Using and Porting GNU CC (for <BR> version 2.0). Both are made from the Texinfo source file <BR> gcc.texinfo. <BR> <BR>DESCRIPTION <BR> The C and C++ compilers are integrated. Both process <BR> input files through one or more of four stages: prepro- <BR> cessing, compilation, assembly, and linking. Source file- <BR> name suffixes identify the source language, but which name <BR> you use for the compiler governs default assumptions: <BR> <BR> gcc assumes preprocessed (.i) files are C and assumes C <BR> style linking. <BR> <BR> g++ assumes preprocessed (.i) files are C++ and assumes <BR> C++ style linking. <BR> <BR> Suffixes of source file names indicate the language and <BR> kind of processing to be done: <BR> <BR> .c C source; preprocess, compile, assemble <BR> .C C++ source; preprocess, compile, assemble <BR> .cc C++ source; preprocess, compile, assemble <BR> .cxx C++ source; preprocess, compile, assemble <BR> .m Objective-C source; preprocess, compile, assemble <BR> .i preprocessed C; compile, assemble <BR> .ii preprocessed C++; compile, assemble <BR> .s Assembler source; assemble <BR> .S Assembler source; preprocess, assemble <BR> .h Preprocessor file; not usually named on command line <BR> <BR> Files with other suffixes are passed to the linker. Com- <BR> mon cases include: <BR> <BR> .o Object file <BR> .a Archive file <BR> <BR> Linking is always the last stage unless you use one of the <BR> -c, -S, or -E options to avoid it (or unless compilation <BR> errors stop the whole process). For the link stage, all <BR> .o files corresponding to source files, -l libraries, <BR> unrecognized filenames (including named .o object files <BR> and .a archives) are passed to the linker in command-line <BR> order. <BR> <BR>OPTIONS <BR> Options must be separate: `-dr' is quite different from <BR> `-d -r '. <BR> <BR> Most `-f' and `-W' options have two contrary forms: -fname <BR> and -fno-name (or -Wname and -Wno-name). Only the non- <BR> default forms are shown here. <BR> <BR> Here is a summary of all the options, grouped by type. <BR> Explanations are in the following sections. <BR> <BR> Overall Options <BR> -c -S -E -o file -pipe -v -x language <BR> <BR> Language Options <BR> -ansi -fall-virtual -fcond-mismatch <BR> -fdollars-in-identifiers -fenum-int-equiv <BR> -fexternal-templates -fno-asm -fno-builtin <BR> -fno-strict-prototype -fsigned-bitfields <BR> -fsigned-char -fthis-is-variable <BR> -funsigned-bitfields -funsigned-char <BR> -fwritable-strings -traditional -traditional-cpp <BR> -trigraphs <BR> <BR> Warning Options <BR> -fsyntax-only -pedantic -pedantic-errors -w -W <BR> -Wall -Waggregate-return -Wcast-align -Wcast-qual <BR> -Wchar-subscript -Wcomment -Wconversion <BR> -Wenum-clash -Werror -Wformat -Wid-clash-len <BR> -Wimplicit -Winline -Wmissing-prototypes <BR> -Wmissing-declarations -Wnested-externs -Wno-import <BR> -Wparentheses -Wpointer-arith -Wredundant-decls <BR> -Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -