From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,5ae13d1d79c4e68a X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-02-11 09:20:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!uni00nw.unity.ncsu.edu!not-for-mail From: Andrew Schultz Newsgroups: comp.os.linux.alpha Subject: Re: Compiler query Date: Mon, 11 Feb 2002 12:11:58 -0500 Organization: NC State University Message-ID: <3C67FB5E.3010704@eos.ncsu.edu> References: <5f9f0a23.0202110156.6a63fb5f@posting.google.com> NNTP-Posting-Host: susan.che.ncsu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: uni00nw.unity.ncsu.edu 1013447518 5132 152.14.40.83 (11 Feb 2002 17:11:58 GMT) X-Complaints-To: news@unity.ncsu.edu NNTP-Posting-Date: 11 Feb 2002 17:11:58 GMT User-Agent: Mozilla/5.0 (X11; U; Linux alpha; en-US; rv:0.9.8) Gecko/20020205 X-Accept-Language: en-us Xref: archiver1.google.com comp.os.linux.alpha:4875 trouble wrote: > Basically the latest version of some numerical software I bought is > performing like a dog. I wrote to customer services and got this > response (below). > > Is this correct ? > -------------------------------------------------------------------------- > ...the problem is with the gcc compiler for alpha linux. It > generates bad code. Now, there is a competing compiler made by > Dec Alpha, which does generate better code on Alpha Linux (more like (Compaq) > Alpha > OSF). > > There are a couple of reasons why the gcc compiler was chosen: > 1. It is the native compiler for the platform. yes. > 2. Dec Alpha's compiler would have required them to link into > some libraries that are not included with the OS. This would have > required the > customer to install these additional libraries as well. yes, but I don't think this would be a big deal. Maybe, but probably not. > 3. The Dec Alpha compiler for Alpha linux was far behind the > current version of Red Hat, so they would have had to revert to an > older version > of RedHat linux. probably not. Compaq has not developed their C compiler since August 2000. You can still use the compiler on a new system, although you might have to install some linux backward-compatibility libraries. one additional thing is that it is easier for them to stick with gcc. Code that works with gcc on x86 will probably work with gcc on Alpha without any tweaking. > In a performance test, Alpha OSF was the fastest machine out of about > 10 machines tested. Incidentally, the alpha linux machine was > identical hardware, but came in last in the performance test. If they have ported their code to OSF, the additional time to port it to Compaq's C for Linux should not be too bad. I haven't actually used their C compiler for Linux, but I have used gcc on Linux their C compiler on OSF. I've also used their fortran compiler on both Linux and OSF. The fortran compilers are very similar and produce similarly performing code. -- ------------------------------------------------------------------ Andrew Schultz | The views expressed might ajschult@eos.ncsu.edu | not represent those of NCSU. http://www4.ncsu.edu/~ajschult/ | They are however, correct.