From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21509 invoked from network); 9 Sep 1998 16:45:10 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 9 Sep 1998 16:45:09 -0000 Received: from earth.terran.org (bryan@earth.terran.org [208.152.24.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA08886 for ; Wed, 9 Sep 1998 12:45:47 -0400 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.8) with SMTP id JAA24950 for ; Wed, 9 Sep 1998 09:48:02 -0700 Date: Wed, 9 Sep 1998 09:48:02 -0700 (PDT) From: "B. James Phillippe" To: axp-list@redhat.com Subject: Re: Impossible In-Reply-To: Message-ID: Organization: Terran.ORG/LinuxWorld.NET X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 8 Sep 1998, Mark Dohojda wrote: > He run C program in NT and in Linux (on the same box), and NT proved to > be 30% faster. Now I don't know much about the code, however I know > that he used the same sources on both of the operating systems. Also > the source (to the best of my knowledge) was in no way optimized for NT. ... > My question is, how can NT beat Linux????? Is that possible? And what to > do, to make sure that Linux is not going to look bad. It's impossible to know what's happening without knowing what this program does. One theory: I've heard that the Linux Alpha math libraries are really slow and inefficient. If the program uses floating point a lot, that might be the problem. Another very likely candidate is the compiler: I've also heard Microsoft's Alpha compiler is actually Digital's handiwork. The compiler that comes with RedHat is not really the best available. You could try getting egcs-1.1 release from http://egcs.cygnus.com and compiling it with the Haifa scheduler, then rebuilding your code with something like -O3 -ffast-math. Let us know what the results are. cheers, -bp -- B. James Phillippe Linux Software Engineer, WGTI. http://earth.terran.org/~bryan