Difference between far and huge pointer?

Author Topic: Difference between far and huge pointer?  (Read 444 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 139
  • Karma: 0
    • No Addiction
Difference between far and huge pointer?
« on: 04-04-2016, 04:21:49 »
The major difference between the two pointers are as follows:-
    Far pointer are not normalized whereas huge pointer are normalized

Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 15
  • Posts: 896
  • Karma: 0
Re: Difference between far and huge pointer?
« Reply #1 on: 05-16-2016, 01:56:55 »
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.


Related Topics

  Subject / Started by Replies Last post
0 Replies
Last post 11-11-2011, 01:02:57
by manvbf
14 Replies
Last post 06-10-2015, 00:05:40
by abhi_garg
9 Replies
Last post 08-29-2016, 13:19:23
by Remyvulu
6 Replies
Last post 04-24-2016, 07:42:23
by sonth321
1 Replies
Last post 05-16-2016, 01:18:23
by TomClarke