Path: utzoo!attcan!uunet!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I use a floating point chip in a MAC II? Keywords: programming floating MAC Message-ID: <1397@husc6.harvard.edu> Date: 12 Mar 89 23:32:25 GMT References: <2129@aecom.YU.EDU> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec/THINK Technologies, Bedford, MA Lines: 22 In article <2129@aecom.YU.EDU> bob@aecom.YU.EDU (Bob Lummis) writes: >I am programming in LSC. I want to do floating point arithmetic as fast as >possible on a machine with a floating point chip, but have the program still >run (slower) on a plain Mac. How do I do that? How do I determine if I am >executing on a machine with floating point? Use the 68881 code generation option, which will generate direct calls to the coprocessor, and the Math881 library. The easy way to run on multiple machines is to have separate versions of your program. You can determine the presence of the coprocessor by using SysEnvirons. --Rich Rich Siegel Staff Software Developer THINK Technologies Division, Symantec Corp. Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel Phone: (617) 275-4800 x305