linux基础学习之 GCC
来源:互联网 发布:小学语文课文造假知乎 编辑:程序博客网 时间:2024/06/12 20:29
GCC
gcc [-c|-S|-E] [-std=standard]
[-g] [-pg]
[-Wwarn...] [-pedantic]
[-Idir...] [-Ldir..]
[-Dmacro[=defn]...] [-Umacro]
[-foption...] [mmachine-option...]
[-o output] [@file] infile...
-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>
--help Display this information
--target-help Display target specific command line options
--help={target|optimizers|warnings|params|[^]{joined|separate|undocumented}}[,...]
Display specific types of command line options
-c compile or assemble the source files,but do not link.the linking stage is not done.
-s stop after the stage of compilation proper;do not assemble.
-E stop after the preprocessing stage;do not run the compiler proper.
-o file place output in file.
-v print the commands executed to run the stages of compilation.
-w inhibit all warning messages
-Werror make all warnings into errors.
-g produce debugging information in the operating system's natie format.
-pg generate extra code to write profile information suitable for the analysis program
gprof. you must use this option when compiling the source files you want data anout , and
you must also use it when linking.
-ftime-report makes the compiler print some statistics about the time consumed by each
pass when it finishes.
-fmem-report makes the compiler print some statistics about permanent memory allocation
when it finishes.
-I dir add the directory dir to the list of directory to be seachered for header files.
-M instead of outputing the result of preprocessing , output a rule suitable for make
describing the dependencies of the main source file.
-MM like -M but do not mention header files that are found in system header
directories, nor header files that are included,directly or indirectly,from such a header.
-l library seacher the library named library when linking.
gcc [-c|-S|-E] [-std=standard]
[-g] [-pg]
[-Wwarn...] [-pedantic]
[-Idir...] [-Ldir..]
[-Dmacro[=defn]...] [-Umacro]
[-foption...] [mmachine-option...]
[-o output] [@file] infile...
-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>
--help Display this information
--target-help Display target specific command line options
--help={target|optimizers|warnings|params|[^]{joined|separate|undocumented}}[,...]
Display specific types of command line options
-c compile or assemble the source files,but do not link.the linking stage is not done.
-s stop after the stage of compilation proper;do not assemble.
-E stop after the preprocessing stage;do not run the compiler proper.
-o file place output in file.
-v print the commands executed to run the stages of compilation.
-w inhibit all warning messages
-Werror make all warnings into errors.
-g produce debugging information in the operating system's natie format.
-pg generate extra code to write profile information suitable for the analysis program
gprof. you must use this option when compiling the source files you want data anout , and
you must also use it when linking.
-ftime-report makes the compiler print some statistics about the time consumed by each
pass when it finishes.
-fmem-report makes the compiler print some statistics about permanent memory allocation
when it finishes.
-I dir add the directory dir to the list of directory to be seachered for header files.
-M instead of outputing the result of preprocessing , output a rule suitable for make
describing the dependencies of the main source file.
-MM like -M but do not mention header files that are found in system header
directories, nor header files that are included,directly or indirectly,from such a header.
-l library seacher the library named library when linking.
1 0
- linux基础学习之 GCC
- linux之gcc基础
- LINUX学习之初学GCC
- linux学习之初识GCC
- linux学习之初识gcc
- Linux之GCC入门学习
- Linux学习之GCC&GDB,Makefile
- linux学习之二---gcc与g++
- linux学习之三---gcc编译过程
- 【Linux基础】Gcc 编译器
- Linux GCC 基础命令
- linux基础--gcc命令
- gcc基础学习
- 【Linux学习】GCC学习
- Linux学习之基础命令
- 编程基础之Linux学习
- linux学习之shell基础
- Linux学习之Shell基础
- string中c_str()、data()、copy(p,n)函数的用法
- 手机如何连接没有广播(隐藏)wifi无线网络
- SVN目录的CleanUp问题
- 朝九晚五的程序员如何提高开发技能
- android studio 插件
- linux基础学习之 GCC
- 后台基于SSH框架开发的Android应用的前后台数据交互
- log4j 详细讲解(不能再详细了)
- Android API Guides---App Install Location
- 字符集和编码II: fat/msdos/vfat (文件名乱码的问题)
- 富文本原价 现在的价格
- LUA学习(二) 类型、表达式等基础要点
- [Introduction]About Python
- 人生感悟