Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!ll-xn!husc6!cmcl2!brl-adm!adm!escott@BONNIE.UCI.EDU From: escott@BONNIE.UCI.EDU Newsgroups: comp.lang.c Subject: Re: Style [++i vs i++] Message-ID: <8213@brl-adm.ARPA> Date: Wed, 8-Jul-87 13:35:54 EDT Article-I.D.: brl-adm.8213 Posted: Wed Jul 8 13:35:54 1987 Date-Received: Sat, 11-Jul-87 11:30:02 EDT Sender: news@brl-adm.ARPA Lines: 22 (My previous message seems to have not gotten through; sorry if you get two notes just like this one). Actually, I once used a compiler (I don't remember which; maybe it was the os9 level II 6809 compiler) where "i++" and "++i" compiled into slightly different code. Apparently the instruction set had a "post-increment" and "pre-decrement" addressing mode (macro-11 has this too, unless I'm mistaken). So, if you used pre-auto-decrement ("--i"), or post-auto-increment ("i++"), you had the advantage of this addressing mode. Ever since, my habit has been to use increment and decrement in those forms, but I (am somewhat embarrassed to) admit that my memory of the details is dim. +-------------------------------------------------------------------------+ Scott Menter UCI ICS Computing Support Group Univ. of Calif. at Irvine (714) 856 7552 Irvine, California 92717 Internet: escott@ics.uci.edu UUCP: ...!ucbvax!ucivax!escott Bitnet: escott@uci CSNet: escott%ics.uci.edu@csnet-relay Internet (with Name Server): escott@deis.uci.edu +-------------------------------------------------------------------------+