相关疑难解决方法(0)

在x86 linux上使用软件浮点

是否(很容易)可以在i386 linux上使用软件浮点而不会在每次调用时产生陷入内核的费用?我试过-msoft-float,但看起来普通(ubuntu)C库没有包含FP库:

$ gcc -m32 -msoft-float -lm -o test test.c
/tmp/cc8RXn8F.o: In function `main':
test.c:(.text+0x39): undefined reference to `__muldf3'
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

linux floating-point x86

9
推荐指数
3
解决办法
6582
查看次数

标签 统计

floating-point ×1

linux ×1

x86 ×1