Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!gatech!bloom-beacon!think!ames!oliveb!sun!gorodish!guy
From: guy%gorodish@Sun.COM (Guy Harris)
Newsgroups: comp.lang.c
Subject: Re: Style [++i vs i++]
Message-ID: <23742@sun.uucp>
Date: Fri, 17-Jul-87 14:15:06 EDT
Article-I.D.: sun.23742
Posted: Fri Jul 17 14:15:06 1987
Date-Received: Sat, 18-Jul-87 16:47:28 EDT
References: <17310@amdcad.AMD.COM> <2159@emory.uucp> <43@ghsvax.UUCP> <1736@bobkat.UUCP>
Sender: news@sun.uucp
Lines: 29

...
> 		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.

Possibly, although our compiler is also PCC-based and, after deleting
the equivalent useless crud, I got

	addql	#0x1,a6@(-0x4)

and that *without* the optimizer.

In short, any compiler worth its salt can do something reasonable
here.  I won't contort my coding style to get around compiler
inadequacies; I'll complain about the compiler or get a different
one (or, perhaps, fix it).
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy@sun.com