Log Library - How is it done in the library code?
Stephen Clamage
steve at taumet.com
Fri Mar 22 03:21:26 AEST 1991
kym at bingvaxu.cc.binghamton.edu (R. Kym Horsell) writes:
>Yes I may be confused. The following comes from the man page...
>Floating-point code generation option. Can be one of:
>-f68881 Generate in-line code for Motorola
> MC68881 floating-point processor (sup-
> ported only on Sun-3 systems).
>what does this mean? :-)
The Sun-3 has three options for floating point calculations. It can
use the MC68881 co-processor directly, use subroutines to do
floating-point calculations, or use subroutines which choose one of
the other two options based on the presence or absence of the MC68881.
If you know your code will only be run on machines with the MC68881,
you can tell the compiler this with the -f68881 switch. When you then
write a floating-point expression, the compiler will generate code to
use the coprocessor directly (in line) instead of calling a subroutine
to determine how to perform the calculations.
--
Steve Clamage, TauMetric Corp, steve at taumet.com
More information about the Comp.lang.c
mailing list