GCC pipeline description have no effects

2 views
Skip to first unread message

彭建章

unread,
Oct 29, 2009, 4:51:55 AM10/29/09
to hell...@googlegroups.com
大家好,
我在port GCC,加了流水线描述,然后使用-mtune生成的汇编,和不用-mtune的结果一样。
并且我在mips3,loongson2f上测试的结果都是这样的。

为什么会这样呢?

Eric Fisher

unread,
Oct 29, 2009, 4:55:46 AM10/29/09
to hell...@googlegroups.com
似乎是有一个宏(或者代码)来控制是否使用你的描述,或者确认一下是否把描述包含进来。

2009/10/29 彭建章 <pengji...@gmail.com>:

彭建章

unread,
Oct 29, 2009, 5:06:42 AM10/29/09
to hell...@googlegroups.com
我使用gcc 4.4 用loongson2f,也是没有效果的
两个优化选项如下
OPTIMIZE_PIPELINE=" -march=loongson2f -mtune=loongson2f"
OPTIMIZE_NOPIPELINE=" -march=loongson2f"

不知是不是我的优化参数不对

2009/10/29 Eric Fisher <joefo...@gmail.com>

Eric Fisher

unread,
Oct 29, 2009, 5:12:00 AM10/29/09
to hell...@googlegroups.com
-O0?

你用-fdump-rtl-all-all打印中间文件,查看一下调度相关的那个文件,看看是用的什么描述信息。

2009/10/29 彭建章 <pengji...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages