Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!adelie!necntc!linus!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.lang.c Subject: Re: Style [++i vs i++] Message-ID: <856@mcgill-vision.UUCP> Date: Fri, 7-Aug-87 03:23:37 EDT Article-I.D.: mcgill-v.856 Posted: Fri Aug 7 03:23:37 1987 Date-Received: Wed, 19-Aug-87 04:18:00 EDT References: <17310@amdcad.AMD.COM> <2159@emory.uucp> <43@ghsvax.UUCP> <1183@hropus.UUCP> Organization: McGill University, Montreal Lines: 15 >> I just tried this on my Integrated Solutions w/ 4.2BSD: >> main() { int i; i++,5; } >> and I got this (useless crud deleted): >> movl fp@(-4),d0 ;*********** Not necessary >> addql #1,fp@(-4) >> moveq #5,d0 I'm surprised nobody has mentioned (I won't say "noticed"!) that not only did the compiler materialize the value of i++ (which is what was under discussion), it also materialized the 5! der Mouse (mouse@mcgill-vision.uucp)