Difference between far and huge pointer?

Started by chinmay.sahoo, 04-04-2016, 04:21:49

Previous topic - Next topic

chinmay.sahooTopic starter

The major difference between the two pointers are as follows:-
    Far pointer are not normalized whereas huge pointer are normalized


TomClarke

A far pointer is a 32 bit  pointer to an object anywhere in memory. In order to use it,  the compiler must alloocate a segmnet register, load it with  the segment portion of the pointer, and then reference memory using the offset portionof the pointer relative to the newly loaded segment register. This takes extra instructions and extra time, so it is th slowest and largest method of accessing memory.
The huge pointer is a monolithic pointer to some item with a large chunk of memory, and there are no segment: offset boundries. In other words, huge pointer is a actual memory adress, without reference to any segment register.