禁用gcc / g ++中的预测 [英] Disabling predication in gcc/g++

查看:130
本文介绍了禁用gcc / g ++中的预测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在gcc / g ++中禁用预测。当我得到代码的对象转储时,我不希望有任何CMOV,CCMP等指令。

I was wondering if there's a way to disable predication in gcc/g++. When I get the object dump of my code, I don't want there to be any CMOV, CCMP, etc instructions in it.

我已经通过gcc man页面没有任何成功。到目前为止,唯一的出路似乎是侵入gcc本身。在RHEL x86_64机器上使用gcc 4.3。任何想法?

I have gone through the gcc man page without any success. So far the only way ahead seems to be hacking into gcc itself. Using gcc 4.3 on RHEL x86_64 machine. Any ideas?

预先感谢。

推荐答案

这个问题之前,在我的情况下,解决方案是禁用if-conversion。您可以使用编辑标志:

I ran into that problem before and in my case the solution was to disable if-conversion. You can use the compilation flags:

-fno-if-conversion -fno-if-conversion2 

这篇关于禁用gcc / g ++中的预测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆