Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: Efficient STRing CoMPares? Message-ID: <625@taumet.com> Date: 19 Mar 91 15:54:20 GMT References: <1991Mar15.142821@mars.mpr.ca> <15486@smoke.brl.mil> <1193@caslon.cs.arizona.edu> Organization: Taumetric Corporation, San Diego Lines: 16 peter@ficc.ferranti.com (Peter da Silva) writes: >In article <1193@caslon.cs.arizona.edu> dave@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@taumet.com