Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.bugs.4bsd Subject: Re: 4.?BSD C fails to optimize a function's last expression--who has fix? Message-ID: <1492@umcp-cs.UUCP> Date: Thu, 5-Sep-85 21:29:54 EDT Article-I.D.: umcp-cs.1492 Posted: Thu Sep 5 21:29:54 1985 Date-Received: Sat, 7-Sep-85 06:02:54 EDT References: <5216@elsie.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 12 Keywords: C optimizer 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@umcp-cs ARPA: chris@maryland