Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: C Indentation Survey Results Message-ID: <5534@umcp-cs.UUCP> Date: Tue, 7-May-85 19:37:24 EDT Article-I.D.: umcp-cs.5534 Posted: Tue May 7 19:37:24 1985 Date-Received: Thu, 9-May-85 02:39:39 EDT References: <9930@brl-tgr.ARPA> <381@busch.UUCP> <5497@utzoo.UUCP> <5557@utzoo.UUCP> <1472@orca.UUCP> <497@umd5.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 19 > From: zben@umd5.UUCP > And (as long as we are sharpening axes here) if you were programming in > PASCAL you could put the sucker in a WITH DEVICE clause and get rid of > all those "device->" references. AND, it would be more efficient since > the reference would only be evaluated once, at the WITH clause ([...]). Sorry Ben, but (assuming "device" is in a register and you've got a register offset addressing mode---both of which are perhaps dangerous assumptions) device->foo.bar.baz is about as fast as you can get: decl 24(r9) # device->foo.bar.baz--; /* sample vax code */ ("with" in Pascal generally puts a pointer to the object into a register; "device" is already a pointer to the object.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland