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 >
Internet Message Format  |  1990-12-28  |  682b

  1. From: AlexK@tharr.UUCP (Alex Kiernan)
  2. Newsgroups: alt.sources
  3. Subject: Re: Fast strcmp() wanted.
  4. Message-ID: <1055@tharr.UUCP>
  5. Date: 1 Oct 90 10:38:53 GMT
  6.  
  7. >  If the test of the first character saves a procedure call, then no
  8. >matter how good the compiler is it will be faster not to do the call.
  9.  
  10. The Lattice C compiler uses a builtin strcmp, as mandated by ANSI, so often it
  11. can generate great code, taking advantage of all sorts of alignment/length
  12. knowledge. BTW this the LC 68000 code generator, I don't know about other 
  13. platforms. 
  14.  
  15. Alex K.                                                               
  16. -- 
  17. <-- tharr *free* public access to Usenet in the UK 0234 261804 -->
  18.