我有以下C文件
int foo (int input)
{
if (input == 0)
input = 1;
return input;
}
当我使用
gcc foo.c -m32 -Wa,-march=i486 -c
创建目标文件时,一切顺利。但是,当我在命令中添加 -O3
时,出现以下错误:
/tmp/cc7br7gY.s: Assembler messages:
/tmp/cc7br7gY.s:12: Error: `cmove' is not supported on `i486'
我是否必须为汇编优化器提供一个额外的选项来告诉它我想要在 i486 上工作的指令?
gcc --version
输出gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
.