Must useless expressions be evaluated?

mjs at rabbit.UUCP mjs at rabbit.UUCP
Fri Oct 14 08:44:33 AEST 1983

Various optimizers will detect `dead' scratch registers & delete the
assembly language which generates the value (if the assembly code has
no other side effects, such as auto-incrementing a different
register).  I'm not certain if the current /lib/c2 for the VAX does
this, but it should.  Yes, I suppose it would be nice if the compiler
didn't generate such code in the first place, and my guess is that it
would be completely legitimate for it to do so, however, I don't
believe that PCC can easily be made to do this.
	Marty Shannon
UUCP:	{alice,rabbit,research}!mjs
Phone:	201-582-3199

More information about the Comp.lang.c mailing list