From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public From: Terje Mathisen Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/19 Message-ID: <374257A4.8D32722C@hda.hydro.com>#1/1 X-Deja-AN: 479490557 Content-Transfer-Encoding: 7bit References: <371AD875.407C6B83@igs.net> <7g4tng$5ue$1@nnrp1.dejanews.com> <7h7vnn$2ts$15@nntp.Stanford.EDU> <5l4sljqx5d.fsf@tequila.cs.yale.edu> <926495090.942894@haldjas.folklore.ee> <37396C9A.BD7A1D3B@hda.hydro.com> <7hp5if$11co$1@news.doit.wisc.edu> <7hq34t$osi$9@nntp.Stanford.EDU> <374110A2.67761C35@hda.hydro.com> <7hsjvd$o9v$1@m2.c2.telstra-mm.net.au> Organization: Hydro Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.arch,comp.sys.dec Andrew Reilly wrote: > > In article <374110A2.67761C35@hda.hydro.com>, > Terje Mathisen writes: > > With just base or base + offset addresses, I would have needed more > > instructions to update the source & destination pointers as well. > > Well, it's all a question of where you put your adders and > instruction/addressing mode bits, isn't it? > > Thinking as I write, I can see that this way does have the advantage > of not requiring the incremented addresses to be written back to > the register file, but neglecting that factor, it doesn't seem to > be dramatically more efficient than post-increment addressing modes > on other processors. No, it isn't. In fact, I considered adding the following paragraph when I made that post: "Of course, if the auto-incrementing load/store opcodes (LODS/STOS) hadn't been so severly mishandled on both 486 and Pentium, I would have used them instead, since this leads to shorter/smaller code as well." nextw: LODSW ... operate on data in AX STOSW LOOP nextw was the natural kernel on all the early x86 cpus, it used just 4 bytes of opcodes for the load, store and loop overhead. Terje -- - Using self-discipline, see http://www.eiffel.com/discipline "almost all programming can be viewed as an exercise in caching"