Disabling predication in gcc/g++

后端 未结 3 1515
难免孤独
难免孤独 2021-01-18 07:21

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.

3条回答
  •  执笔经年
    2021-01-18 07:38

    You could try targetting a previous x86 instruction set that didn't have these instructions?

    http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Target-Options.html

    gcc -b i386 main.c
    

    (I've not tried this)

提交回复
热议问题