home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
1
/
1889
< prev
next >
Wrap
Internet Message Format
|
1990-12-28
|
682b
From: AlexK@tharr.UUCP (Alex Kiernan)
Newsgroups: alt.sources
Subject: Re: Fast strcmp() wanted.
Message-ID: <1055@tharr.UUCP>
Date: 1 Oct 90 10:38:53 GMT
> If the test of the first character saves a procedure call, then no
>matter how good the compiler is it will be faster not to do the call.
The Lattice C compiler uses a builtin strcmp, as mandated by ANSI, so often it
can generate great code, taking advantage of all sorts of alignment/length
knowledge. BTW this the LC 68000 code generator, I don't know about other
platforms.
Alex K.
--
<-- tharr *free* public access to Usenet in the UK 0234 261804 -->