Re: floating point (was: GNU sed 2.05)

From: Peter Holzer <hp_at_nospam.org>
Date: Tue May 17 1994 - 12:02:45 PDT

You (Robert Mayer - Student) wrote:
>
> You (Peter Holzer) wrote:
> >
> > Not an emulator, but I have a soft-FP library lying around. It was
> > originally written for the Minix bcc compiler, and I added some glue
> > for the c386 compiler. Adding glue for gcc would be trivial (just
> > compile the libgcc?.c-files with c386 -gas).
> >
>
> I don't think it is that easy. If you e.g. multiply two reals, then gcc
> generates floating point instructions to do this, and not a function call to
> libgcc.a. One would have to modify gcc's code generator to make your scheme
> work.

You also have to use the -msoft-float and -mno-fp-ret-in-387 flags (or
recompile gcc to make them default).

        hp

-- 
   _  | hp@vmars.tuwien.ac.at | Peter Holzer | TU Vienna | CS/Real-Time Systems
|_|_) |------------------------------------------------------------------------
| |   | It's not what we don't know that gets us into trouble, it's
__/   | what we know that ain't so. -- Will Rogers
Received on Tue May 17 11:15:27 1994

This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 21:04:28 PDT