You (Peter Holzer) wrote:
> You (Dave Hudson) wrote:
>
> > anyone care to write an FPU emulator?
>
> 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 haven't much time to play with VSTa currently, but the library is in
> /pub/minix/hp/alpha/{bcc,c386}fp.tar.Z on ftp.vmars.tuwien.ac.at, and I
> could produce the necessary glue, too.
>
> 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
>
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.
Regards
Robert
Received on Tue May 17 10:50:26 1994
This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 21:04:28 PDT