home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.hardware
- Subject: Re: Is it Sunset yet?!?!
- Message-ID: <16277@auspex-gw.auspex.com>
- Date: 7 Jan 93 21:34:02 GMT
- References: <16269@auspex-gw.auspex.com> <1993Jan7.104752.28485@wraxall.inmos.co.uk>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 19
- Nntp-Posting-Host: auspex.auspex.com
-
- >Dhrystone always used to be "copy null terminated string" intensive.
- >(I think it was worse than that as the string being copying was a
- >constant string). if you put in hardware support for strcpy then
- >you got great results.
-
- There's no "hardware support [specifically] for 'strcpy()'" in the SPARC
- V8 architecture, which microSPARC implements; unless they've added some
- such hack to microSPARC, that wouldn't explain it.
-
- There may be some *other* feature of the Classic/LX that speeds it up,
- e.g. an on-chip instruction cache, or something (*all* the caches
- are on-chip on microSPARC, as far as I know).
-
- >hence very fast when compared with C strcpy which had to
- >read each byte and compare against 0!
-
- Actually, the SunOS 4.x, and probably SunOS 5.x, SPARC version of
- "strcpy()" doesn't read each byte; it moves 4 bytes at a time when it
- can.
-