Article View: comp.sys.atari.st
Article #27101Absoft FORTRAN linked to FP chip
From: braner
Date: Thu, 04 Jun 1987 05:58
Date: Thu, 04 Jun 1987 05:58
37 lines
2254 bytes
2254 bytes
[]
Finally I got around to linking the NS32081 floating-point chip I have on my
ST to the Absoft FORTRAN77 run-time library. (By "linking" I mean patching
the library so that standard FORTRAN code uses the FP chip, transparently.)
Here are _approximate_ timings, all in microseconds: (32081 clock: 4 MHz).
op single precision double precision
SWFP HWFP SWFP HWFP
add 100 60 160 75
mul 130 60 300 80
div 330 70 900 90
And here, for what they're worth, are the Savage benchmark results:
System CPU / FPP CLOCK LANGUAGE TIME ERROR
(MHz) (Sec) Abs(a-2500)
Atari ST (68000/-----) 8.00 Absoft F77 V2.2 67.6 1.7 E-07
Atari ST (68000/32081) 8.00 Absoft F77 V2.2 16.3 3.1 E-07
That's faster than a 68020 at 16 MHz without FP chip, and about twice slower
than the 8088/8087 combo at 5 MHz. But note:
(1) - The 32081 is here used as a peripheral, not a coprocessor. Most of the
time is spent on the communications, not the calculations! (And that's
after I hacked the cartridge port to be able to write to it. The usual
trick of writing to that port via the address lines would have resulted
in much slower performance.)
(2) - The 32081 does NOT have the transcendental functions built-in. The
above result is with the Absoft software library calling my hardware
drivers every time it needs an addition, subtraction, multiplication
or division. Thus, a 68881 would do a lot better.
- Moshe Braner
Technical Details
Message-ID:
<1266@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!lll-tis!lll-lcc!pyramid!batcomputer!branerShow 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!lll-tis!lll-lcc!pyramid!batcomputer!braner From: braner@batcomputer.UUCP Newsgroups: comp.sys.atari.st Subject: Absoft FORTRAN linked to FP chip Message-ID: <1266@batcomputer.tn.cornell.edu> Date: Thu, 4-Jun-87 01:58:33 EDT Article-I.D.: batcompu.1266 Posted: Thu Jun 4 01:58:33 1987 Date-Received: Sat, 6-Jun-87 06:45:04 EDT Reply-To: braner@tcgould.tn.cornell.edu.UUCP (braner) Distribution: world Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 37 Summary: NS32081 gives a 2--5 fold boost