Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pointers&Hardware limitations

Name: Anonymous 2011-09-26 9:50

Suppose you have a machine with more addressable memory cells than the size of an integer. Since the pointer cannot contain the address of integers in cells whoms address exceed its size, does this means it cannot point at said cells?

Applying the same idea to the largest primitive type possible in a system, does this means its length is the absolute limit of what pointers can point to?

Name: Anonymous 2011-09-26 11:56

>>1
It can't point directly, as expected, but there might be a scheme with which the addressing range is expanded indirectly. Manipulating the A20 address line on x86 real mode is such a way.

Also, if you combine two words to form a greater word you can address a much wider range -- but that'd be rather equivalent of just extending the pointer size.

>>4
Yes, there's intptr_t for that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List