Article View: net.bugs.2bsd
Article #42vax compilers
From: ucbvaxdove
Date: Mon, 19 Apr 1982 15:57
Date: Mon, 19 Apr 1982 15:57
40 lines
1190 bytes
1190 bytes
From: dove at mit-dspg at mit-mc
I just checked out the floating point speed of a local vax (mit-vx).
To do so I compiled the following program:
main()
{
register double z=0;
register long i=100000;
while(i-->0)
{
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
z += 1;
}
}
The vax pcc compiler failed to use register arithmetic to do the floating
point adds, used seperate storage for each constant and didn't use the
add one branch less than or equal instruction to implement the loop.
A similar VMS fortran program also used seperate storage for the constants
but did use register arithmetic and AOBLEQ.
Unix f77 didn't use register arithmetic, but did use an efficient loop
instruction.
Will unix pcc and f77 ever properly use the vax registers and language
support instructions?
Does the "new" f77 at berkeley improve upon the old one a lot in terms
of code and compile time?
Technical Details
Message-ID:
<anews.Aucbvax.6799>Path:
arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!dove@mit-dspg@mit-mcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!dove@mit-dspg@mit-mc From: ucbvax!dove@mit-dspg@mit-mc Newsgroups: net.bugs.2bsd Subject: vax compilers Date: Mon, 19 Apr 1982 15:57:15 +0000 Message-ID: <anews.Aucbvax.6799>