rbb@covalent.net writes:
> > > Can we change the strcmp to a memcmp, since we know that these are static
> > > strings?
> >
> > Is there a compiler which is known to generate worse code for strcmp()
> > than for memcmp() in this case?
> >
> > (I'm not saying there isn't; I just know that there are some which
> > generate the same code. Of course I'm speaking of compilers which
> > generate inline code for various strxxx() and memxxx() "functions".)
>
> I don't really know, but memcmp can obviously generate fast code, so why
> take the chance?
no argument with that; I was just fishing for interesting info
--
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...
|