Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!elroy!jplgodo!wlbr!scgvaxd!ashtate!dbase!csun!aeusesef From: aeusesef@csun.UUCP (Sean Eric Fagan) Newsgroups: comp.arch Subject: Re: Dhrystones & string ops [Was vectors] Message-ID: <712@csun.UUCP> Date: Thu, 6-Aug-87 14:03:13 EDT Article-I.D.: csun.712 Posted: Thu Aug 6 14:03:13 1987 Date-Received: Sun, 9-Aug-87 08:20:48 EDT References: <279@diab.UUCP> <17780@amdcad.AMD.COM> <280@diab.UUCP> Reply-To: aeusesef@csun.UUCP (Sean Eric Fagan) Distribution: world Organization: California State University, Northridge Lines: 40 Keywords: String op's, Dhrystone, benchmarks In article <280@diab.UUCP> pf@.UUCP (Per Fogelstrom) writes: >In article <17780@amdcad.AMD.COM> tim@amdcad.UUCP (Tim Olson) writes: >+------ >|Many processors have specialized instructions for strings -- Intel's 80x86 >|family (movs, cmps), AT&T's 32100 (strlen, strcmp), National's 32x32 >|family (movs, cmps), NEC's V70 (movc, cmpc), Fairchild's Clipper (movc, >|cmpc macros). However, most of these don't address "C-type" strings; >|they require a character count as a parameter. >+------- > >Wrong! At least in the NS32x32 case. They do address "C-type" strings >-- >Per Fogelstrom, Diab Data AB >SNAIL: Box 2029, S-183 02 Taby, Sweden >ANALOG: +46 8-7680660 >UUCP: seismo!mcvax!enea!diab!pf Hold on! The WE32100 chip *DOES* use C type strings. The instructions, incidentally, are STREND and STRCPY. STREND uses %r0, and increments it until it comes to a '\0', while STRCPY copies %r0 to %r1 until it comes to a '\0'. Unnecessary and useless fact designed to eat up line space so that the news poster won't complain: the 3B[5 at least] Unix that comes with it (SysVr2.0) uses the STRCPY instruction for the strcpy() function, but it does not use the STREND instruction for the strlen() routine. And, the assembler requires that these instructions be in UPPER CASE. Very strange machine. ----- Sean Eric Fagan Office of Computing/Communications Resources (213) 852 5742 Suite 2600 1GTLSEF@CALSTATE.BITNET 5670 Wilshire Boulevard Los Angeles, CA 90036 {litvax, rdlvax, psivax, hplabs, ihnp4}!csun!{aeusesef,titan!eectrsef} -------------------------------------------------------------------------------- My employers do not endorse my | "When in danger, in doubt, opinions, and, at least in my | run in Circles, scream, and shout." preference of Unix, heartily | -Dora Long, Richard Ames disagree. | (Robert A. Heinlein)