C optimizer
Vick Khera
khera at juliet.cs.duke.edu
Sat Feb 25 03:51:44 AEST 1989
In article <9693 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>In article <1026 at frog.UUCP> john at frog.UUCP (John Woods) writes:
>>The 68881 chip has FCOS, FSIN, and (gasp) FSINCOS which simultaneously
>>computes cos() and sin() of the same argument. A sufficiently clever
>>compiler could potentially make great use of that.
>
>Well, hurray -- I've wanted that for years! I do hope C implementors
>will perform this optimization; it could help us computer-graphics types
>quite a bit.
The Sun 3 C compiler will use the intrinsic functions of the 68881 chip if
you tell it to compile with the f68881.il inline-expansion file. i beilieve
it is located in /usr/lib/f68881/libm.il under 4.0, and in
/usr/lib/f68881.il in 3.x.
example compile line:
cc -o prog prog.c /usr/lib/f68881.il
vick.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ARPA: khera at cs.duke.edu Department of Computer Science
CSNET: khera at duke Duke University
UUCP: decvax!duke!khera Durham, NC 27706
More information about the Comp.lang.c
mailing list