当前位置: 技术问答>linux和unix
高手请指教;关于gcc的编译参数 -msoft-float 的问题
来源: 互联网 发布时间:2014-12-15
本文导语: 我现在我机上(redhat 7.2,p4 芯片) 用软件进行浮点运算,但是我编译的时候 带了参数-msoft-float -lm,浮点运算却通不过,请各位高手指教该如何改正? | -msoft-float Generate o...
我现在我机上(redhat 7.2,p4 芯片) 用软件进行浮点运算,但是我编译的时候
带了参数-msoft-float -lm,浮点运算却通不过,请各位高手指教该如何改正?
带了参数-msoft-float -lm,浮点运算却通不过,请各位高手指教该如何改正?
|
-msoft-float
Generate output containing library calls for floating point. Warning: there
is no GNU floating-point library for SPARC. Normally the facilities of the
machine's usual C compiler are used, but this cannot be done directly in
cross-compilation. You must make your own arrangements to provide suitable
library functions for cross-compilation.
-msoft-float changes the calling convention in the output file; therefore,
it is only useful if you compile all of a program with this option.
Generate output containing library calls for floating point. Warning: there
is no GNU floating-point library for SPARC. Normally the facilities of the
machine's usual C compiler are used, but this cannot be done directly in
cross-compilation. You must make your own arrangements to provide suitable
library functions for cross-compilation.
-msoft-float changes the calling convention in the output file; therefore,
it is only useful if you compile all of a program with this option.