什么是近,远,巨大的指针? [英] What are near, far and huge pointers?

查看:117
本文介绍了什么是近,远,巨大的指针?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以用合适的例子来解释一下这些指针......而当使用这些指针?

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

推荐答案

在过去,根据Turbo C的手册中,近指针仅仅是16位的,当你的整个code和数据适合在一个段。一种远指针是由一个段,以及作为偏移,但不进行归一化。和一个巨大的指针是自动恢复正常。两个远指针可以想象指向同一位置在内存中,但是不同的,而指向相同存储器位置的归一巨大的指针将始终是相等的。

In the old days, according to the Turbo C manual, a near pointer was merely 16 bits when your entire code and data fit in the one segment. A far pointer was composed of a segment as well as an offset but no normalisation was performed. And a huge pointer was automatically normalised. Two far pointers could conceivably point to the same location in memory but be different whereas the normalised huge pointers pointing to the same memory location would always be equal.

这篇关于什么是近,远,巨大的指针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆