Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: Which is better? Message-ID: <291@rlgvax.UUCP> Date: Mon, 10-Dec-84 19:27:37 EST Article-I.D.: rlgvax.291 Posted: Mon Dec 10 19:27:37 1984 Date-Received: Wed, 12-Dec-84 04:26:29 EST References: <13900013@acf4.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 30 Both if (condition) { code.... break; } other code.... break; and if (condition) { code.... } else { other code..... } break; generate identical code with the 4.2BSD VAX PCC when the -O flag is on, which isn't too surprising since those code sequences are equivalent. That probably requires that the compiler be smart enough to recognize jumps to jumps and the like, but any compiler that does those optimizations should generate the same code for both. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy