Path: utzoo!attcan!uunet!mcsun!ukc!axion!tharr!AlexK 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 References: <1646@cherry.edc.UUCP> <1990Sep27.151543.8025@ccs.carleton.ca> <1966@sixhub.UUCP> Reply-To: AlexK@tharr.UUCP (Alex Kiernan) Organization: Power Microsystems Ltd Lines: 11 > 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 -->