From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6ea7bc6b2eaad876 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-05-01 09:39:18 PST Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!topaz.bds.com!topaz.bds.com!ron From: ron@topaz.bds.com (Ron Natalie) Newsgroups: comp.sys.dec Subject: Re: DEC ALPHA questions... Date: 1 May 1993 15:46:48 GMT Organization: BDS Systems Distribution: world Message-ID: <1ru618INNgv6@topaz.bds.com> References: <1993Apr29.082806.378@gtewd.mtv.gtegsc.com> NNTP-Posting-Host: topaz.bds.com >> 2) I've noticed quite a bit of talk RE: problems with the OSF/1 C >> compiler, although I haven't had time to read through all of the >> messages. How serious are some of these problems? Would it be best >> to wait a while until some bugs are fixed?? > > I ran several big chunks of code through the developer's-release compiler, > and they all ran fine. In update 10, I have detected exactly two problems with the compiler, and I've run a lot of stuff through it. 1. On some of our code, it warns us that to optimize it, we need to do -Olimit with a larger number to increase the number of basic blocks, but goes on and generates unoptimized code. If you try to up the limit, some modules cause the compiler to dump core (making a corefile in excess of 200 megabytes). 2. Having a switch with no curly brace compound statement never notices the labels, e.g..... switch(i) case 4: if(i < 100) case 2: if(i < 50) case 1: if( i < 25) foo(0); else foo(1) else foo(2) else foo(3) It never executes any of the code in the if statements. This is the only compiler I've ever seen this fail on (it works on the MIPS compiler). Wrapping { } around all the lines after the switch(i) causes it to work properly. I know this is an usual (but it is legal both in old K&R and in ANSI) C construct. By and large, pretty minor problems. The latest release (10) code for the ALPHA is as good (if not better) than most of the production releases from other vendors. It's really complete and up to date (which is more than I can say about some vendors). It even has EMACS already compiled for you and other fun things like RCS... And they are fast. -Ron