GCC的几个重要选项解释

来源:互联网 发布:c 二维数组赋值不全 编辑:程序博客网 时间:2024/04/28 14:32
  1. -c  Compile or assemble code, but do not link  
  2. -c  编译或者汇编代码,但是不链接  
  1. -S  Stop after compiling, but do not assemble  
  2. -S  在编译之后停止,但不汇编 
  1. -E  Stop after preprocessing, but do not compile  
  2. -E  预处理后停止,但不编译 
  1. -o  Specifies the output filename to use  
  2. -o  指定输出文件的名称 
  1. -v  Display the commands used at each stage of compilation  
  2. -v  显示编译的每个阶段使用的命令  
  1. -std  Specifies the language standard to use  
  2. -std  指定要用的语言标准 
  1. -g  Produce debugging information  
  2. -g  产生调试信息 
  1. -pg  Produce extra code used by gprof for profiling  
  2. -pg  产生额外信息,被gprof用来做profilling 
  1. -O  Optimize executable code  
  2. -O  优化可执行代码 
  1. -W  Sets compiler warning message level  
  2. -W  设置编译器的警报级别 
  1. -pedantic  Issue mandatory diagnostics listing in the C standard  
  2. -pedantic  发出在C标准中列出的强制性诊断?
  1. -I  Specify directories for include files  
  2. -I  指定文件包含的目录
  1. -L  Specify directories for library files  
  2. -L  指定库目录 
  1. -D  Predefine macros used in the source code  
  2. -D  预定义在源代码中出现的宏 
  1. -U  Cancel any defined macros  
  2. -U  取消所有定义的宏 
  1. -f  Specify options used to control the behavior of the compiler  
  2. -f  指定用来控制编译器行为的选项  
  1. -m  Specify hardware-dependant options  
  2. -m  指定与硬件相关的选项  

原文出处:http://blog.csdn.net/bendanban/article/details/8656240

0 0
原创粉丝点击