4.?BSD C fails to optimize a function's last expression--who has fix?

Chris Torek chris at umcp-cs.UUCP
Fri Sep 6 11:29:54 AEST 1985


Probably the simplest way to fix this would be to get some aid from
the compiler.  The compiler knows when an expression is complete
and the value no longer needed; if it dumped a comment into the
assembly file, c2 could pick that up and know that r0 was no longer
"live".

Of course, the *best* way to fix it would probably be to use a real
optimizing compiler....
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.bugs.4bsd.ucb-fixes mailing list