Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.convex.com!ewright From: ewright@convex.com (Edward V. Wright) Newsgroups: comp.sys.mac.programmer Subject: Re: Pascal deficiency? Message-ID: Date: 17 Dec 90 20:30:44 GMT References: <1990Dec17.160242.5095@phri.nyu.edu> <1990Dec17.172613.7941@cs.umn.edu> Sender: news@convex.com Lines: 20 In <1990Dec17.172613.7941@cs.umn.edu> sec@cs.umn.edu (Stephen E. Collins) writes: >To wit, most CPUs have some sort of increment instruction in the hardware, >so a shoddy compiler may generate something like the following code: >x := x+1: LOAD X > ADD 1 > STORE X > -or- >x++: INC X Actually, this would have to be >x++: LOAD X > INC X > STORE X Unless you have an instruction to increment variables in memory!