From owner-freebsd-current Tue Mar 17 07:58:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08622 for freebsd-current-outgoing; Tue, 17 Mar 1998 07:58:41 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08617 for ; Tue, 17 Mar 1998 07:58:39 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.8.8/8.8.5) id IAA02101; Tue, 17 Mar 1998 08:01:40 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <199803170750.AAA16965@usr04.primenet.com> Date: Tue, 17 Mar 1998 07:53:40 -0800 (PST) Organization: Applied Physics Laboratory From: Steve Kargl To: Terry Lambert Subject: Re: Compilers: 2.8.1 v 2.7.2.1? Cc: freebsd-current@FreeBSD.ORG, ckempf@enigami.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 17-Mar-98 Terry Lambert wrote: >> > Exceptions will not work with pthreads unless you are running 2.8.x >> > g++ or better. This is as good a reason as any >> >> FWIW, I've been using egcs-1.0.x for testing g77. On my simple, >> real-world benchmark (my code :-), g77 is giving about a 22% increase >> in execution speed over f77 (f2c+gcc). > >egcs makes you make the choice about threading when you compile the >compiler, instead of when you compile the code (as in gcc). > >I think egcs is seriously broken. > > >The problem is that the exception stack needs to be per-thread. > > >The moral to this story? "I can make it run as fast as you want, as >long as it doesn't have to actually work". > I don't use C++, so I can't speak about egcs's g++ and exceptions. Sigh. You're moral seems to be a non-sequitur with respect to my g77 observation. Most people would assume a statement of "real-world benchmark (my code)" means not only was g77 22% faster but it also gives the right answer. In fact, I can cook up a Fortran program that runs 16 times faster when complied with g77 than with f2c+gcc. I hardly would call this a real-world benchmark. (Oh yeah, both give the expected results). -- Steve finger kargl@troutmask.apl.washington.edu http://troutmask.apl.washington.edu/~clesceri/kargl.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message