From owner-freebsd-arch Mon Nov 1 16:36:54 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id A23E415349 for ; Mon, 1 Nov 1999 16:36:49 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id BAA10253 for ; Tue, 2 Nov 1999 01:36:48 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id BAA76853 for freebsd-arch@freebsd.org; Tue, 2 Nov 1999 01:36:48 +0100 (MET) Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (Postfix) with ESMTP id 3A98B15329 for ; Mon, 1 Nov 1999 16:34:56 -0800 (PST) (envelope-from dima@tejblum.pp.ru) Received: (from uucp@localhost) by arc.hq.cti.ru (8.9.3/8.9.3) with UUCP id DAA38725; Tue, 2 Nov 1999 03:34:10 +0300 (MSK) (envelope-from dima@tejblum.pp.ru) Received: from tejblum.pp.ru (localhost [127.0.0.1]) by tejblum.pp.ru (8.9.3/8.9.3) with ESMTP id DAA03020; Tue, 2 Nov 1999 03:40:35 +0300 (MSK) (envelope-from dima@tejblum.pp.ru) Message-Id: <199911020040.DAA03020@tejblum.pp.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: obrien@NUXI.com Cc: Dmitrij Tejblum , freebsd-arch@freebsd.org From: Dmitrij Tejblum Subject: Re: stpcpy() In-reply-to: Your message of "Sun, 31 Oct 1999 16:02:55 PST." <19991031160255.E2388@relay.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain Date: Tue, 02 Nov 1999 03:40:34 +0300 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David O'Brien" wrote: > On Mon, Nov 01, 1999 at 02:49:24AM +0300, Dmitrij Tejblum wrote: > > > Bruce hit the nail right on the head -- people are making assumptions > > > with out know what their compiler is doing. > > > > You omitted following Bruce's words: > > > > > > In practice, gcc seems to only inline strlen(). > > What does that have to do with the wisdom I was extracting from BDE's > statements? A LOT of people are trying to optimize things with out > knowing what their compiler does. That do mostly defeat this "wisdom" in this particular case. The part you quoted talked about an imaginary compiler. As I wrote in the previous mail, on a real non-braindamaged compiler stpcpy() cannot be slower than the strcpy()/strlen() combination. It is quite obvious for any professional programmer. > > Really? Why? My colleagues use Windows and occasionally use stpcpy(), > > just because it is CONVENIENT and obviously cannot make their program > > slower. If the program is slower on FreeBSD (or even not compile), this is > > not their fault. > > Bull crap. If an application writer uses non-standard functions it *is* > their fault. Next day you will tell us to not use strdup(). Don't make me laugh. Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message