Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!sri-unix!ctnews!pyramid!prls!philabs!gcm!dc From: dc@gcm.UUCP Newsgroups: comp.unix.questions Subject: Wierd Compilers Message-ID: <367@white.gcm> Date: Sun, 1-Nov-87 19:14:28 EST Article-I.D.: white.367 Posted: Sun Nov 1 19:14:28 1987 Date-Received: Tue, 3-Nov-87 03:19:40 EST Organization: Greenwich Capital Markets, Greenwich, CT Lines: 19 Keywords: Sun /* Program 1 */ main() { int i = 500000; while(--i); } /* Program 2 */ main() { int i = 500000; while(i--); } Does anyone have a guess why program one runs in half the time of program two? BTW this is a SUN 3.