🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #1492

68881 Floating Point Speed Increase on Sun 3/60

#1492
From: Wayne Little
Date: Thu, 21 Sep 1989 17:09
20 lines
1278 bytes
One of the professors here at UMR discovered that he gained a 5 times
performance increase on some of his floating point intensive code with
complex numbers by using in-line expansion.

The problem was with the *humongous* amount of stack traffic that was
being generated by the 68881 coprocessor calls.

The fix is to designate the inline expansion library for the 68881 on the
compile line - 
e.g.
f77 -c -f68881 code.c -O code /usr/lib/68881/libm.il

The problem and solution are described in detail in section G
(Assembly-Level In-line Expansion) of Sun's Floating-Point Programmer's
Guide, pp. 105-113.

I hope this will be of help to others.

-- Wayne Little      Internet: rwl@ee.umr.edu      UUCP: uunet!umree!rwl
Phone: (314) 341-4546  USPS: Univ. of Missouri-Rolla, EE Dept., Rolla, MO 65401
Technical Details
Message-ID: <1560@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: rwl@umree.ee.umr.edu (Wayne Little)
Newsgroups: comp.sys.sun
Subject: 68881 Floating Point Speed Increase on Sun 3/60
Keywords: Miscellaneous
Message-ID: <1560@brazos.Rice.edu>
Date: 21 Sep 89 17:09:08 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 20
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 8, Issue 126, message 9 of 15