Efficient STRing CoMPares?
Stephen Clamage
steve at taumet.com
Wed Mar 20 01:54:20 AEST 1991
peter at ficc.ferranti.com (Peter da Silva) writes:
>In article <1193 at caslon.cs.arizona.edu> dave at cs.arizona.edu (Dave Schaumann) writes:
>> I think you'll have to agree that any professional C compiler worth the name
>> would almost certainly inline *at least* the str???() functions; given an
>> environment where function calls are expensive.
>By "professional" I assume you mean "optimised for running dhrystone", right?
I wouldn't assume so. Some of the string functions, notably strcpy and
strlen, have shorter bodies than calling sequences. A compiler writer
would choose to emit these functions inline because the code is both
smaller and faster.
--
Steve Clamage, TauMetric Corp, steve at taumet.com
More information about the Comp.lang.c
mailing list