From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,272806539bf7cbe5 X-Google-Attributes: gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 05 Sep 2006 17:32:20 -0400 From: Hoff Hoffman User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.sys.dec Subject: Re: VAX floating-point instruction timing? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 16.123.194.92 Message-ID: <44fdecd9@usenet01.boi.hp.com> X-Trace: usenet01.boi.hp.com 1157491929 16.123.194.92 (5 Sep 2006 15:32:09 -0600) Path: g2news2.google.com!news3.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!ihnp4.ucsd.edu!sdd.hp.com!news.compaq.com!usenet01.boi.hp.com!not-for-mail Xref: g2news2.google.com comp.sys.dec:1212 Peter "Firefly" Lund wrote: > On Tue, 5 Sep 2006, Bob Koehler wrote: > >> DEC never published counts for any of the VAX instructions. A trivial > > I have the cycle counts for the VLSI VAXen's integer instructions > (except for mul/div in most cases). The VLSI-based VAX systems used microcode, too. >> About all you can count on is that a NOP in the instruction cache >> should be one cycle. > > On a microcoded machine? Not necessarily ;) I'd have to check the architecture specs to see if that was a certainty, but I'd tend to assume that some VAX systems used more than one cycle for a NOP. It may well have been less than a cycle in some cases, depending on whether it was compressed out of the instruction stream. (On VAX 9000?) NOP was also useful for branch alignment, as unaligned branches were slower than aligned branches. > (Yes, it was one cycle on the VLSI VAXen -- was it on VAX 11/780, too? > I know next to nothing about its cycle times, unfortunately.) IIRC, it was a 188 bit microword on the VAX-11/780, and 80 on the VAX-11/750. And not all cycles and not all ticks are necessarily the same length. >> Cycle counts are about as usefull as Marketing Instructions Per >> Second, which have the same and a few more issues. > > They are very useful if you are trying to understand the various > microarchitectures used. And various VAX families used different microarchitectures, and instruction subsets can and did vary across the VAX family. In various cases, it was faster to execute a series of discrete instructions than some of the more complex instructions. CRC comes to mind here. > They are also very useful for optimization purposes, particularly if the > microarchitecture is simple. I've never heard a VAX referred to as "simple," and a VAX microarchitecture is not "simple.". (Dig around for any discussions of the WCS Writable Control Store option if you want details of what one VAX looked like. The WCS allowed user-written microcode for the VAX-11/780, and there were some folks that wanted or needed that extra margin of performance enough to use WCS.) I remember the "fun" that this tuning approach (and WCS, for that matter) led to decades ago. (And back when computes where truly scarce.) Sure, you can tune an instruction stream for one VAX model, but the effort could be wasted on the next. The VAX-11/790 (officially released as the VAX 8600) had its own coding oddities, for instance, and the subset VAX systems have their own considerations -- most VAX systems had instruction oddities, and you'll find occasional artifacts of a few of these lurking within present-day OpenVMS VAX itself. And then there's the old 700 microinstructions per programmer per year benchmark... (Maybe from Bell Labs?) > "Pairing"/multiple issue rules (Pentium, > 68060, Alpha 21064, Alpha 21164) make it harder. Out-of-order execution > makes it almost impossible -- but cycle counts and issue rates are still > very useful hints, you just need to profile more carefully. And you have to expect to toss all your careful profiling work out and start over again either periodically -- there were several releases of microcode for various VAX systems, and more than a few of the instruction tuners had to re-tune -- or when you moved to a different VAX platform. (Or when the data was aligned versus unaligned.) The old black processor binders (black five-ring binders with a white grill pattern) had the microcode listings for various of the VAX-11 series boxes. And the WCS option had tools and such for one of the boxes. BitSavers () claims to have: dec/vax/AA-H306B_780uprogToolsMar82.pdf VAX-11/780 Microprogramming Tools User's Guide (Mar 1982)