Re: Constant divisions, remainders

preston@miranda.cs.rice.edu (Preston Briggs)
Wed, 11 Nov 1992 16:39:17 GMT

          From comp.compilers

Related articles
[3 earlier articles]
Re: Constant divisions, remainders kelsey@flora.ccs.northeastern.edu (1992-10-27)
Re: Constant divisions, remainders torbenm@diku.dk (1992-11-02)
Re: Constant divisions, remainders joe@babel.ho.att.com (1992-11-05)
Re: Constant divisions, remainders henry@zoo.toronto.edu (1992-11-08)
Re: Constant divisions, remainders jones@pyrite.cs.uiowa.edu (1992-11-11)
Re: Constant divisions, remainders nickh@CS.CMU.EDU (1992-11-11)
Re: Constant divisions, remainders preston@miranda.cs.rice.edu (1992-11-11)
Re: Constant divisions, remainders jlg@cochiti.lanl.gov (1992-11-12)
Re: Constant divisions, remainders corbett@lupa.Eng.Sun.COM (1992-11-12)
Re: Constant divisions, remainders jfc@athena.mit.edu (1992-11-16)
| List of all articles for this month |
Newsgroups: comp.compilers
From: preston@miranda.cs.rice.edu (Preston Briggs)
Organization: Rice University, Houston
Date: Wed, 11 Nov 1992 16:39:17 GMT
References: 92-10-075 92-11-033
Keywords: arithmetic

torbenm@diku.dk (Torben AEgidius Mogensen) writes:
>I think the round-to-zero rule for div and signed mod are relics from ones
>complement computers, and should be laid to rest.


henry@zoo.toronto.edu (Henry Spencer) writes:
>Actually, I seem to recall that it is specifically a relic of FORTRAN, ...


The PL.8 language was specified to always produce a positive mod. Of
course, that may be what happens when you get a lot of compiler writers on
the project :-) Another important point is that weren't designing for a
particular machine; rather they built the machine and the language
together (and the 801 had no hardware support for division anyway).


Preston Briggs
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.