Different pointer representations on the same machine
Wonderly
gregg at ihlpb.ATT.COM
Fri Feb 17 06:45:51 AEST 1989
In article <3675 at arcturus> evil at arcturus.UUCP (Wade Guthrie) writes:
>I have seen references on the net to computers which have different
>representations for different types of pointers (even some computers
>which represent different types of pointers as different sizes).
>
>Could I have some examples...
The middle model of the typical 80x86 C compiler is a great example.
Typically, pointers to text are FAR (selector/segment plus offset) while
pointers to data are NEAR (just offset). While there is not a model
(that I have seen) that is the other way, it is a conceivable alternative.
--
Gregg Wonderly DOMAIN: gregg at ihlpb.att.com
AT&T Bell Laboratories UUCP: att!ihlpb!gregg
More information about the Comp.lang.c
mailing list