GCC --help

Usage: gcc [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase
  --help                   Display this information
  --target-help            Display target specific command line options
  --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...]
                           Display specific types of command line options
  (Use '-v --help' to display command line options of sub-processes)
  --version                Display compiler version information
  -dumpspecs               Display all of the built in spec strings
  -dumpversion             Display the version of the compiler
  -dumpmachine             Display the compiler's target processor
  -print-search-dirs       Display the directories in the compiler's search path
  -print-libgcc-file-name  Display the name of the compiler's companion library
  -print-file-name=<lib>   Display the full path to library <lib>
  -print-prog-name=<prog>  Display the full path to compiler component <prog>
  -print-multiarch         Display the target's normalized GNU triplet, used as
                           a component in the library path
  -print-multi-directory   Display the root directory for versions of libgcc
  -print-multi-lib         Display the mapping between command line options and
                           multiple library search directories
  -print-multi-os-directory Display the relative path to OS libraries
  -print-sysroot           Display the target libraries directory
  -print-sysroot-headers-suffix Display the sysroot suffix used to find headers
  -Wa,<options>            Pass comma-separated <options> on to the assembler
  -Wp,<options>            Pass comma-separated <options> on to the preprocessor
  -Wl,<options>            Pass comma-separated <options> on to the linker
  -Xassembler <arg>        Pass <arg> on to the assembler
  -Xpreprocessor <arg>     Pass <arg> on to the preprocessor
  -Xlinker <arg>           Pass <arg> on to the linker
  -save-temps              Do not delete intermediate files
  -save-temps=<arg>        Do not delete intermediate files
  -no-canonical-prefixes   Do not canonicalize paths when building relative
                           prefixes to other gcc components
  -pipe                    Use pipes rather than intermediate files
  -time                    Time the execution of each subprocess
  -specs=<file>            Override built-in specs with the contents of <file>
  -std=<standard>          Assume that the input sources are for <standard>
  --sysroot=<directory>    Use <directory> as the root directory for headers
                           and libraries
  -B <directory>           Add <directory> to the compiler's search paths
  -v                       Display the programs invoked by the compiler
  -###                     Like -v but options quoted and commands not executed
  -E                       Preprocess only; do not compile, assemble or link
  -S                       Compile only; do not assemble or link
  -c                       Compile and assemble, but do not link
  -o <file>                Place the output into <file>
  -pie                     Create a position independent executable
  -shared                  Create a shared library
  -x <language>            Specify the language of the following input files
                           Permissible languages include: c c++ assembler none
                           'none' means revert to the default behavior of
                           guessing the language based on the file's extension

Options starting with -g, -f, -m, -O, -W, or --param are automatically
 passed on to the various sub-processes invoked by gcc.  In order to pass
 other options on to these processes the -W<letter> options must be used.

 

用法:gcc[选项]文件。。。
选项:
-传递退出代码从一个阶段以最高错误代码退出
--帮助显示此信息
--target help显示特定于目标的命令行选项
--help={common|optimizers|params|target|warnings|[^]{joind|separate|notified}}}[,…]
显示特定类型的命令行选项
(使用“-v--help”显示子进程的命令行选项)
--version显示编译器版本信息
-dumpsecs显示所有内置的规范字符串
-dumpversion显示编译器的版本
-dumpmachine显示编译器的目标处理器
-打印搜索目录显示编译器搜索路径中的目录
-print libgcc文件名显示编译器配套库的名称
-打印文件名=<lib>显示库<lib>的完整路径
-print prog name=<prog>显示编译器组件<prog]的完整路径
-print multiarch显示目标的标准化GNU三元组,用作
库路径中的组件
-print multi-directory显示libgcc版本的根目录
-打印多库显示命令行选项和之间的映射
多个库搜索目录
-打印多操作系统目录显示操作系统库的相对路径
-print sysroot显示目标库目录
-打印sysroot头后缀显示用于查找头的sysroot后缀
-Wa,<options>将逗号分隔的<options>传递到汇编程序
-Wp,<options>将逗号分隔的<options>传递到预处理器
-Wl,<options>将逗号分隔的<options>传递到链接器
-Xassembler<arg>将<arg>传递到汇编程序
-Xpreprocessor<arg>将<arg>传递到预处理器
-Xlinker<arg>将<arg>传递到链接器
-保存临时文件不删除中间文件
-save temps=<arg>不删除中间文件
-没有规范化前缀在构建相对路径时不规范化路径
其他gcc组件的前缀
-管道使用管道而不是中间文件
-time每个子流程的执行时间
-specs=<file>使用<file>的内容覆盖内置specs
-std=<standard>假设输入源用于<standard>
--sysroot=<directory>使用<directory]作为标头的根目录
和库
-B<directory>将<directory<添加到编译器的搜索路径
-v显示编译器调用的程序
-###类似于-v,但引用了选项且未执行命令
-E仅预处理;不编译、汇编或链接
-S仅编译;不要组装或链接
-c编译和组装,但不链接
-o<file>将输出放入<file>
-pie创建独立于位置的可执行文件
-shared创建共享库
-x<language>指定以下输入文件的语言
允许的语言包括:c c++汇编程序none
“none”表示恢复到的默认行为
根据文件扩展名猜测语言
以-g、-f、-m、-O、-W或-param开头的选项是自动的
传递给gcc调用的各个子进程。为了通过
对于这些进程的其他选项,必须使用-W<letter>选项。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值