[comp.sys.mac.programmer] using 68881 directly

arenberg@trwrb.UUCP (Jeff Arenberg) (02/27/88)

I'm working on a very computationally intensive application on a Mac II
using LightspeedC.  I think things will go much faster is I could make
call to the 68881 chip directly without using the SANE package.  So, two
questions. First, will LSC 3.0 have support for direct use of the 68881?
Second, can anyone tell me how to write short assembly code routines to do
simple operation (I only need add, subtract, multiply, divide and
square root) using pointers to variable in C?  That is, what are the 68881
op codes or trap calls for these operations?

Thanks,

Jeff Arenberg
------------------------------------------------------------
UUCP : ( ucbvax, ihnp4, uscvax ) !trwrb!trwcsed!arenberg
ARPA : jarenberg@ecla.usc.edu
GEnie: shifty
------------------------------------------------------------

leonardr@uxe.cso.uiuc.edu (02/29/88)

arenberg@trwrb.UUCP(Jeff Arenberg) writes in comp.sys.mac.programmer

>I'm working on a very computationally intensive application on a Mac II
>using LightspeedC.  I think things will go much faster is I could make
>call to the 68881 chip directly without using the SANE package.  So, two
>questions. First, will LSC 3.0 have support for direct use of the 68881?
>Second, can anyone tell me how to write short assembly code routines to do
>simple operation (I only need add, subtract, multiply, divide and
>square root) using pointers to variable in C?  That is, what are the 68881
>op codes or trap calls for these operations?
>
	Version 3.0 of LSC will in fact support 881 calls directly, so that 
will make your life much easier...
	If you can't wait for 3.0 and are going to try to write your own 881
INLINE in LSC, don't bother as LSC's inline assemlber does not recognize the
881 stuff.  You will have to compile it elsewhere and then convert it over
to an LSC lib.  Sorry...

+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +                                   +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+