home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!pipex!ibmpcug!exnet!dhd
- From: dhd@exnet.co.uk (Damon)
- Subject: Hand-tuned strcmp, Was: SPECmark for 486PC
- Message-ID: <Bz85sA.BqE@exnet.co.uk>
- Organization: ExNet Systems Ltd Public Access News, London, UK
- References: <9211291618.43@rmkhome.UUCP> <GJR.92Nov30083125@chamarti.ai.mit.edu> <723248954.28138@minster.york.ac.uk>
- Date: Mon, 14 Dec 1992 01:07:21 GMT
- Lines: 20
-
- In article <723248954.28138@minster.york.ac.uk> mjl-b@minster.york.ac.uk (Mathew Lodge) writes:
- >On C compilers (remember Dhrstone was actually implemented in Ada, then
- >converted) this means hand tuning strcmp() -- I have a 68K C compiler that
- >generates a little hand-crafted in-line asssembly for this particular
- >library call.
-
- I had a program (the same one I ported to an HP-UX in 30 minutes
- mentioned in a post earlier today) that *doubled* in speed when I wrote
- the inlined version of strcmp(). Well, not quite strcmp(); it did the
- subtraction comparison in longer integers or something.
-
- The code was compiling rather fancy concordances. Bet NSA has a similar
- program...
-
- Damon
- --
- Damon Hart-Davis Internet: dhd@exnet.co.uk, d@hd.org
-
- Public-access UNIX (Suns), news and mail for UK#5 per month. FIRST MONTH FREE.
- [1.35] Cheap Sun eqpt. UUCP news/mail feeds. Tel/Fax: +44 81 755 0077.
-