【发布时间】:2009-06-19 15:36:41
【问题描述】:
是否可以(轻松地)在 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
【问题讨论】:
标签: linux floating-point x86