Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!ism780c!news From: news@ism780c.isc.com (News system) Newsgroups: comp.lang.c Subject: Re: "Numerical Recipes in C" is nonportable code Message-ID: <16041@ism780c.isc.com> Date: 17 Sep 88 00:25:08 GMT References: <867@osupyr.mast.ohio-state.edu> <3200@geac.UUCP> <1430@ficc.uu.net> <1988Sep15.145026.20325@ateng.uucp> Reply-To: marv@ism780.UUCP (Marvin Rubenstein) Organization: Interactive Systems Corp., Santa Monica CA Lines: 17 In article <1988Sep15.145026.20325@ateng.uucp> chip@ateng.UUCP (Chip Salzenberg) writes: >According to peter@ficc.uu.net (Peter da Silva): >>But nobody says you have to load the selector into a selector register >>just to compute an address. > >More to the point: The dpANS says you (the implementor) are _allowed_ to >load the selector into a selector register when computing the address. To >do otherwise could slow down register-intensive pointer manipulation. > But consider what might have happened had dpANS mandated that the compution of a pointer to x[-1] be a valid operation. Then machines for wich the mandated behavior is slow would be not used by people interested in high performance. The net effect could be salubrious for the computer industry in the long run. Marv Rubinstein