没有合适的资源?快使用搜索试试~ 我知道了~
GCC中文手册(吐血推荐)
4星 · 超过85%的资源 需积分: 50 178 下载量 167 浏览量
2008-11-01
11:42:48
上传
评论 2
收藏 316KB PDF 举报
温馨提示
试读
56页
GCC中文手册,^_^,方便e文不好用户。 GCC是GNU公社的一个项目。是一个用于编程开发的自由编译器。最初,GCC只是一个C语言编译器,他是GNU C Compiler 的英文缩写。随着众多自由开发者的加入和GCC自身的发展,如今的GCC以经是一个包含众多语言的编译器了。其中包括 C,C++,Ada,Object C和Java等。所以,GCC也由原来的GNU C Compiler变为GNU Compiler Collection。也就是 GNU编译器家族的意思。当然,如今的GCC借助于他的特性,具有了交叉编译器的功能,即在一个平台下编译另一个平台的代码。 直到现在,GCC的历史仍然在继续,他的传奇仍然被人所传颂。
资源推荐
资源详情
资源评论
GCC 中文手册
GCC
Section: GNU Tools (1)
Updated: 2003/12/05
Index Return to Main Contents
NAME
gcc,g++-GNU 工程的 C 和 C++编译器(egcs-1.1.2)
总览(SYNOPSIS)
gcc[option|filename ]...
g++[option|filename ]...
警告(WARNING)
本手册页内容摘自 GNU C 编译器的完整文档,仅限于解释选项的含义.
除非有人自愿维护,否则本手册页不再更新.如果发现手册页和软件之间有所矛盾,请查对 Inf
o 文件, Info 文件是权威文档.
如果我们发觉本手册页的内容由于过时而导致明显的混乱和抱怨时,我们就停止发布它.不可
能有其他选择,象更新 Info 文件同时更新 man 手册,因为其他维护 GNU CC 的工作没有留给
我们时间做这个. GNU 工程认为 man 手册是过时产物,应该把时间用到别的地方.
如果需要完整和最新的文档,请查阅 Info 文件`gcc'或 Using and Porting GNU CC (f
or version 2.0) (
使用和移植
GNU CC 2.0) 手册.二者均来自 Texinfo 原文件 gcc.
texinfo.
描述(DESCRIPTION)
C 和 C++编译器是集成的.他们都要用四个步骤中的一个或多个处理输入文件: 预处理(prep
rocessing),编译(compilation),汇编(assembly)和连接(linking).源文件后缀名标
识源文件的 语言,但是对编译器来说,后缀名控制着缺省设定:
gcc
认为预处理后的文件(.i)是 C 文件,并且设定 C 形式的连接.
g++
认为预处理后的文件(.i)是 C++文件,并且设定 C++形式的连接.
源文件后缀名指出语言种类以及后期的操作:
.c C 源程序;预处理,编译,汇编
.C C++源程序;预处理,编译,汇编
.cc C++源程序;预处理,编译,汇编
.cxx C++源程序;预处理,编译,汇编
.m Objective-C 源程序;预处理,编译,汇编
.i 预处理后的 C 文件;编译,汇编
.ii 预处理后的 C++文件;编译,汇编
.s 汇编语言源程序;汇编
.S 汇编语言源程序;预处理,汇编
.h 预处理器文件;通常不出现在命令行上
其他后缀名的文件被传递给连接器(linker).通常包括:
.o 目标文件(Object file)
.a 归档库文件(Archive file)
除非使用了-c, -S,或-E 选项(或者编译错误阻止了完整的过程),否则连接总是 最后的步
骤.在连接阶段中,所有对应于源程序的.o 文件, -l 库文件,无法识别的文件名(包括指定的
.o 目标文件和.a 库文件)按命令行中的顺序传递给连接器.
选项(OPTIONS)
选项必须分立给出: `-dr'完全不同于`-d -r '.
大多数`-f'和`-W'选项有两个相反的格式: -fname 和 -fno-name (或-Wname 和-Wno-
name).这里 只列举不是默认选项的格式.
下面是所有选项的摘要,按类型分组,解释放在后面的章节中.
总体选项(Overall Option)
-c -S -E -o file -pipe -v -x language
语言选项(Language Option)
-ansi -fall-virtual -fcond-mismatch -fdollars-in-identifiers -
fenum-int-equiv -fexternal-templates -fno-asm -fno-builtin -fh
osted -fno-hosted -ffreestanding -fno-freestanding -fno-strict
-prototype -fsigned-bitfields -fsigned-char -fthis-is-variable
-funsigned-bitfields -funsigned-char -fwritable-strings -trad
itional -traditional-cpp -trigraphs
警告选项(Warning Option)
-fsyntax-only -pedantic -pedantic-errors -w -W -Wall -Waggrega
te-return -Wcast-align -Wcast-qual -Wchar-subscript -Wcomment
-Wconversion -Wenum-clash -Werror -Wformat -Wid-clash-len -Wim
plicit -Wimplicit-int -Wimplicit-function-declaration -Winline
-Wlong-long -Wmain -Wmissing-prototypes -Wmissing-declaration
s -Wnested-externs -Wno-import -Wparentheses -Wpointer-arith -
Wredundant-decls -Wreturn-type -Wshadow -Wstrict-prototypes -W
switch -Wtemplate-debugging -Wtraditional -Wtrigraphs -Wuninit
ialized -Wunused -Wwrite-strings
调试选项(Debugging Option)
-a -dletters -fpretend-float -g -glevel -gcoff -gxcoff -gxcoff
+ -gdwarf -gdwarf+ -gstabs -gstabs+ -ggdb -p -pg -save-temps -
print-file-name=library -print-libgcc-file-name -print-prog-na
me=
program
优化选项(Optimization Option)
-fcaller-saves -fcse-follow-jumps -fcse-skip-blocks -fdelayed-
branch -felide-constructors -fexpensive-optimizations -ffast-m
ath -ffloat-store -fforce-addr -fforce-mem -finline-functions
-fkeep-inline-functions -fmemoize-lookups -fno-default-inline
-fno-defer-pop -fno-function-cse -fno-inline -fno-peephole -fo
mit-frame-pointer -frerun-cse-after-loop -fschedule-insns -fsc
hedule-insns2 -fstrength-reduce -fthread-jumps -funroll-all-lo
ops -funroll-loops -O -O2 -O3
预处理器选项(Preprocessor Option)
-Aassertion -C -dD -dM -dN -Dmacro[=defn] -E -H -idirafter dir
-include file -imacros file -iprefix file -iwithprefix dir -M
-MD -MM -MMD -nostdinc -P -Umacro -undef
汇编器选项(Assembler Option)
-Wa,option
连接器选项(Linker Option)
-llibrary -nostartfiles -nostdlib -static -shared -symbolic -X
linker option -Wl,option -u symbol
目录选项(Directory Option)
-Bprefix -Idir -I- -Ldir
目标机选项(Target Option)
-b machine -V version
配置相关选项(Configuration Dependent Option)
M680x0
选项
-m68000 -m68020 -m68020-40 -m68030 -m68040 -m68881 -mbitfield
-mc68000 -mc68020 -mfpa -mnobitfield -mrtd -mshort -msoft-floa
t
VAX
选项
-mg -mgnu -munix
SPARC
选项
-mepilogue -mfpu -mhard-float -mno-fpu -mno-epilogue -msoft-fl
oat -msparclite -mv8 -msupersparc -mcypress
Convex
选项
-margcount -mc1 -mc2 -mnoargcount
AMD29K
选项
-m29000 -m29050 -mbw -mdw -mkernel-registers -mlarge -mnbw -mn
odw -msmall -mstack-check -muser-registers
M88K
选项
-m88000 -m88100 -m88110 -mbig-pic -mcheck-zero-division -mhand
le-large-shift -midentify-revision -mno-check-zero-division -m
no-ocs-debug-info -mno-ocs-frame-position -mno-optimize-arg-ar
ea -mno-serialize-volatile -mno-underscores -mocs-debug-info -
mocs-frame-position -moptimize-arg-area -mserialize-volatile -
mshort-data-num -msvr3 -msvr4 -mtrap-large-shift -muse-div-ins
truction -mversion-03.00 -mwarn-passed-structs
RS6000
选项
-mfp-in-toc -mno-fop-in-toc
RT
选项
-mcall-lib-mul -mfp-arg-in-fpregs -mfp-arg-in-gregs -mfull-fp-
blocks -mhc-struct-return -min-line-mul -mminimum-fp-blocks -m
nohc-struct-return
MIPS
选项
-mcpu=cpu type -mips2 -mips3 -mint64 -mlong64 -mmips-as -mgas
-mrnames -mno-rnames -mgpopt -mno-gpopt -mstats -mno-stats -mm
emcpy -mno-memcpy -mno-mips-tfile -mmips-tfile -msoft-float -m
hard-float -mabicalls -mno-abicalls -mhalf-pic -mno-half-pic -
G num -nocpp
i386
选项
-m486 -mno-486 -msoft-float -mno-fp-ret-in-387
剩余55页未读,继续阅读
资源评论
- Star-Wu2015-07-07不是很完整,推荐看编译器中自带的gcc文档
- hello.kitty2020-04-18比较清晰,可以参考一下
- mihawk20122015-10-06一般吧, 推荐看原版
iamyg
- 粉丝: 6
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于SpringBoot+Vue3快速开发平台、自研工作流引擎源码设计.zip
- docker安装部署全流程
- 基于树莓派的人脸识别系统python源码+项目部署说明+超详细代码注释.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Java知识体系最强总结(2021版).txt
- Python知识点Python知识点Python知识点Python知识点Python知识点PythonPython知识点.txt
- Java开发基于seetaface6的人脸识别(活体检测)的封装源码.zip
- JSP在线失物招领管理平台源码.zip
- JSP在线旅游美食展现管理系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功