Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!ut-ngp!infotel!pollux!bobkat!m5 From: m5@bobkat.UUCP (Mike McNally ) Newsgroups: comp.lang.c Subject: Re: Style [++i vs i++] Message-ID: <1736@bobkat.UUCP> Date: Tue, 14-Jul-87 17:12:33 EDT Article-I.D.: bobkat.1736 Posted: Tue Jul 14 17:12:33 1987 Date-Received: Sat, 18-Jul-87 11:29:57 EDT References: <17310@amdcad.AMD.COM> <2159@emory.uucp> <43@ghsvax.UUCP> <223@wrs.UUCP> <795@nu3b2.UUCP> <5068@utcsri.UUCP> Reply-To: m5@bobkat.UUCP (Mike McNally (Man from Mars)) Organization: Digital Lynx, Inc; Dallas, TX Lines: 36 In article <223@wrs.UUCP>, dg@wrs.UUCP (David Goodenough) writes: > In article <43@ghsvax.UUCP> edk@ghsvax.UUCP (Ed Kaulakis) writes: >> > >> > Many compilers will materialize the (returned old value) of i++ even >> >when nobody wants it, but will do better with ++i. >> >> Ye gads! what braindamaged piece of software are you using?? - I've worked >---------------------------------------------------------------------- >Greg Smith University of Toronto UUCP: ..utzoo!utcsri!greg Well, I just tried this on my Integrated Solutions w/ 4.2BSD: main() { int i; i++, 5; } and I got this (useless crud deleted): L15: /*029*/ movl fp@(-4),d0 ;*********** Not necessary /*066*/ addql #1,fp@(-4) /*028*/ moveq #5,d0 I strongly suspect that this machine's compiler is PCC. -- Mike McNally, mercifully employed at Digital Lynx --- Where Plano Road the Mighty Flood of Forest Lane doth meet, And Garland fair, whose perfumed air flows soft about my feet... uucp: {texsun,killer,infotel}!pollux!bobkat!m5 (214) 238-7474