I tried compiling with -msoft-float option and I start getting linker
errors for functions like __muldf3, __adddf3, etc...
The MAN page states that GCC does not provide these functions. (even
though I am building for 386).
So my question is this:
Do embedded users who do not have a floating point unit on their
processors write their own math emulation library? This seems to me to be
too much of a problem. I am not used to worrying about being able to
multiply and divide. I would rather buy a package (at least for standard
processors like 386, PowerPC,...).
Are there any commercial or freeware packages out there which I can use?
Thanks
--
Pawan Singh
[EMAIL PROTECTED]
650-404-0213
On Thu, 15 Jun 2000, Pete Buechler wrote:
> How about compiling with this option to avoid the traps?
>
> `-msoft-float'
> Generate output containing library calls for floating point.
> *Warning:* the requisite libraries are not part of GCC. Normally
> the facilities of the machine's usual C compiler are used, but
> this can't be done directly in cross-compilation. You must make
> your own arrangements to provide suitable library functions for
> cross-compilation.
>
> On machines where a function returns floating point results in the
> 80387 register stack, some floating point opcodes may be emitted
> even if `-msoft-float' is used.
>
>
> --
> Pete Buechler : SuSE Linux Developer
> Work e-mail : [EMAIL PROTECTED]
> Work web page : http://www.suse.com/~peterb
> Personal e-mail : [EMAIL PROTECTED]
>
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.