Have you compiled gcc for softfloat ??
I have used softfloat when I made a gcc cross compiler for PowerPC CPU. It is much
faster but I did not benchmark it but it is very much faster if you have alot of
floating point operations.
On the other hand if you really do have floating point operations you are using the
wrong CPU. If I was you I should use the FPU emulation as that makes you binary
compatible with stuff that is
already compiled. If you opt for softfloat you have to be very observant so you dont
mix software with FPU instructions and softfloat. It dose not work even if you use
both emulation and softfloat you
have to use one OR the other.
Pawan Singh wrote:
>
> 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>.
--
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>.