Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Yet more trash about strcpy and strlen on various micros Message-ID: <5255@utzoo.UUCP> Date: Fri, 15-Mar-85 13:29:56 EST Article-I.D.: utzoo.5255 Posted: Fri Mar 15 13:29:56 1985 Date-Received: Fri, 15-Mar-85 13:29:56 EST References: <9208@brl-tgr.ARPA> Organization: U of Toronto Zoology Lines: 18 > Two things from this survey surprised me, one, that the iAPX-286 > makes very good use of clock cycles... Well, it is the third time Intel has implemented the 86 architecture, so they've had a chance to learn from their botches... > ... and two, that the 32032 and the > 32016 have such amazingly slow micro-code for a single instruction > string move or scan (MOVSB U and SKPSB). The word is not "amazingly" but "disgustingly". When I asked him about it point-blank (after studying the timing numbers in the 32016 manual) my National rep admitted that the string instructions are actually slower than tightly-coded multi-instruction sequences!!! Try it without the string instructions, preferably with some degree of loop unrolling. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry