what is meant by normalization in huge pointers

后端 未结 3 704
暗喜
暗喜 2021-01-05 11:14

I have a lot of confusion on understanding the difference between a \"far\" pointer and \"huge\" pointer, searched for it all over in google for a solution, couldnot find on

3条回答
  •  感情败类
    2021-01-05 11:37

    As I recall, it's something like this:

    • Near pointers point to memory in the same segment (as the pointer).
    • Far pointers point to memory in another segment.
    • Huge pointers let you point to memory that's larger than a segment (so you can have a block >64k and do arithmetic on your pointer, and what Samuel said).

    If you're a beginner, it's probably best to forget that you heard about Near/Far/Huge. They only have meaning in the old 16-bit segmented memory model commonly seen on early Intel 80x86's. In 32- and 64-bit land (i.e., everything since 1994), memory is just a big contiguous block, so a pointer is just a pointer (as far as a single application is concerned).

提交回复
热议问题