"Numerical Recipes in C" is nonportable code

Peter da Silva peter at ficc.uu.net
Thu Sep 8 12:02:01 AEST 1988


In article <3200 at geac.UUCP>, daveb at geac.UUCP (David Collier-Brown) writes:
>   Regrettably, some architectures prohibit this: (sr-1):ffff may
> mean <undefined segment>:ffff, and the loading of the selector into an
> selector register will cause a fault.

But nobody says you have to load the selector into a selector register
just to compute an address. Why should the address calculation hardware
be involved at all?
-- 
Peter da Silva  `-_-'  Ferranti International Controls Corporation.
"Have you hugged  U  your wolf today?"            peter at ficc.uu.net



More information about the Comp.lang.c mailing list