What are near, far and huge pointers?

前端 未结 6 1061
刺人心
刺人心 2020-11-30 01:34

Can anyone explain to me these pointers with a suitable example ... and when these pointers are used?

6条回答
  •  臣服心动
    2020-11-30 01:49

    All of the stuff in this answer is relevant only to the old 8086 and 80286 segmented memory model.

    near: a 16 bit pointer that can address any byte in a 64k segment

    far: a 32 bit pointer that contains a segment and an offset. Note that because segments can overlap, two different far pointers can point to the same address.

    huge: a 32 bit pointer in which the segment is "normalised" so that no two far pointers point to the same address unless they have the same value.

    tee: a drink with jam and bread.

    That will bring us back to doh oh oh oh

    and when these pointers are used?

    in the 1980's and 90' until 32 bit Windows became ubiquitous,

提交回复
热议问题