🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #20250

troff floating point

#20250
From: Donald Lindsay
Date: Sun, 12 Mar 1989 00:05
24 lines
1702 bytes
In article <1143@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes:
>> Since troff is FP intensive (at least
>> on a VAX) that may be difference.
>
>How can it be FP-intensive if it has no floating point numbers in it?  I
>found no occurrences of "float" or "double" in the 4.3BSD "nroff"/"troff"
>source, and the SunOS 4.0 "nroff"/"troff" is basically derived from the
>4.3BSD version.

Possibly the confusion crept in because of the VAX 11/780 Floating
Point Accelerator.  When the FPA option is installed, the 11/780 will
do integer multiplies somewhat faster. Apparently, the integer multiply
can make use of the FPA's multiply hardware.

Of course, the number of integer multiplies in troff may depend on the
compiler which is used. On a VAX, some compilers generate scaled
addressing modes, where others would generate explicit multiplies.
Other VAX-independent optimizations ( strength reduction, loop
hoisting, multiply-by-constant, common subexpression elimination ) will
also reduce the number of multiplies, hence, reduce the impact of the
FPA.
-- 
Don		D.C.Lindsay 	Carnegie Mellon   Computer Science
-- 
Technical Details
Message-ID: <4479@pt.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!MATHOM.GANDALF.CS.CMU.EDU!lindsay
References: <807@microsoft.UUCP> <92634@sun.uucp> <13322@steinmetz.ge.com> <1133@auspex.UUCP> <13328@steinmetz.ge.com> <1143@auspex.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!MATHOM.GANDALF.CS.CMU.EDU!lindsay
From: lindsay@MATHOM.GANDALF.CS.CMU.EDU (Donald Lindsay)
Newsgroups: comp.arch,comp.sys.intel
Subject: troff floating point
Message-ID: <4479@pt.cs.cmu.edu>
Date: 12 Mar 89 00:05:47 GMT
References: <807@microsoft.UUCP> <92634@sun.uucp> <13322@steinmetz.ge.com> <1133@auspex.UUCP> <13328@steinmetz.ge.com> <1143@auspex.UUCP>
Organization: Carnegie-Mellon University, CS/RI
Lines: 23
Keywords: VAX 780 FPA