Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ron@topaz.bds.com (Ron Natalie)
Subject: Re: DEC ALPHA questions...
Date: 1 May 1993 15:46:48 GMT	[thread overview]
Message-ID: <1ru618INNgv6@topaz.bds.com> (raw)
In-Reply-To: C6CrBy.2pF.2@cs.cmu.edu

>>    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


      reply	other threads:[~1993-05-01 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-29 16:28 DEC ALPHA questions cowan
1993-05-01 14:38 ` Donald Lindsay
1993-05-01 15:46   ` Ron Natalie [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox