🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20921

LightSpeedPascal Library Supporting MC68881

#20921
From: bond
Date: Thu, 29 Oct 1987 10:54
45 lines
2255 bytes
In LightSpeed Pascal V1.11a there is no support for the floating point
processor MC68881 in the Mac II. This is to announce that I have made a
small library supporting MC68881 and callable from LSP. I am prepared
to distribute it freely to the net if there is any interest. It right
now supports arithmetic with reals (i e no doubles) only.

I decided to make the library after comparing execution times for part of
an application as indicated in the following table. I couldn't accept
to have to write programs in FORTRAN once again.

     Absoft FORTRAN/68020      5 Tickcounts
     LSP V1.11a              210    -"-
     LSP V1.11a+Library       15

The day after the library was completed I received TML Pascal 2.5 and got the
result
     TML Pascal 2.5           38 Tickcounts
However the problem is very unfavorable to the TML since their library only
supports the type extended.

To add two reals you write e.g.
     c:=FADD(a,b);
This is of course not the most proper way; the same metod is used in TML Pascal.
Absoft FORTRAN supports the notation c=a+b.

I guess that other people have written similar libraries and perhaps there is
one which is more complete.

I have  included a function
     FUNCTION MandelIter(z,c:complex;max:integer):integer;
which performs a number of iterations of the form
     z:=z*z+c

Let me also mention that I sometimes experience problems when using userwritten
libraries in the LSP environment, although there are no problems when the
same program is run as a separate application.


Magnus Bondesson
Dep of Computer Science
Chalmers University of Technology
S-412 96 G|teborg
SWEDEN
UUCP: ..!mcvax!enea!cs.chalmers.se!bond
Technical Details
Message-ID: <2075@chalmers.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!uunet!mcvax!enea!chalmers!bond

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!uunet!mcvax!enea!chalmers!bond
From: bond@chalmers.UUCP
Newsgroups: comp.sys.mac
Subject: LightSpeedPascal Library Supporting MC68881
Message-ID: <2075@chalmers.UUCP>
Date: Thu, 29-Oct-87 05:54:26 EST
Article-I.D.: chalmers.2075
Posted: Thu Oct 29 05:54:26 1987
Date-Received: Sun, 1-Nov-87 09:46:26 EST
Organization: Dept. of CS, Chalmers, Sweden
Lines: 45
Keywords: 68881,LSP