是否(很容易)可以在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)