找回密码
 注册
查看: 973|回复: 3

Makefile中如下参数是什么意思?能否具体分析一下?

[复制链接]
发表于 2003-8-9 10:40:43 | 显示全部楼层 |阅读模式
这是从一个比较老的程序的安装文件中摘出来的,说是对gcc2.7及以上的编译器进行的优化参数,能否具体分析一下这个语句?
CFLAGS=-O4 -fomit-frame-pointer -funroll-loops
发表于 2003-8-9 13:28:49 | 显示全部楼层
you'd better google it before posting your question.
Follow the old saying, STFW (Search The Fcuking Web)

hope this link helpful (I got it via google).
http://www.cs.utexas.edu/users/UTCS/online-docs/info2html/info2html.cgi?(gcc)Optimize+Options
回复

使用道具 举报

发表于 2003-8-9 15:55:17 | 显示全部楼层

Re: Makefile中如下参数是什么意思?能否具体分析一

[quote:6d678ddbd6="andy007"]这是从一个比较老的程序的安装文件中摘出来的,说是对gcc2.7及以上的编译器进行的优化参数,能否具体分析一下这个语句?
CFLAGS=-O4 -fomit-frame-pointer -funroll-loops[/quote]

CFLAGS就是在编译的时候make传给gcc的参数,至于这些参数什么意思,就要gcc --help或者man gcc来自己看了
回复

使用道具 举报

 楼主| 发表于 2003-8-9 19:09:42 | 显示全部楼层
o,好的,我自己慢慢研究吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-11 19:24 , Processed in 0.031021 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表