说明在C近,远和巨大的指针之间的区别? [英] Explain the difference between near, far and huge pointers in c?

查看:127
本文介绍了说明在C近,远和巨大的指针之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/1749904/difference-between-far-pointer-and-near-pointer-in-c\">difference用C 远指针和近指针之间

Possible Duplicate:
difference between far pointer and near pointer in C

我在谷歌搜索这三个指针之间的区别。但我发现任何两个指针之间的区别。

I searched in GOOGLE for the difference between these three pointers. But I found out the difference between any of the two pointers.

你能给这个详解好吗?

推荐答案

的差异只在 16位Intel架构

至于虚拟地址而言,它有两个组成部分 - 一个选择器和偏移量

As far as virtual addresses is concerned, It has two components - a selector and an offset.

选择是一个索引基地地址表和偏移添加到该基址。

The selector is an index into a table of base addresses and offset is added onto that base address.

附近指针没有选择 - 他们有一个隐含的选择。他们可以访问64K关闭虚拟地址空间

near pointers don't have a selector - they have an implied selector. They can access 64k off the virtual address space.

指针有一个明确的选择。然而,当你做指针算法对他们的选择不被修改

far pointers have an explicit selector. However when you do pointer arithmetic on them the selector isn't modified.

指针有一个明确的选择。当你指针放在他们的算术虽然选择可以改变

huge pointers have an explicit selector. When you do pointer arithmetic on them though the selector can change.

请参阅此链接了解更多信息:

Please Refer this link for more info:

<一个href=\"http://www.$c$cproject.com/Answers/103115/near-vs-far-vs-huge-pointers/?cmt=11086#answer1\">http://www.$c$cproject.com/Answers/103115/near-vs-far-vs-huge-pointers/?cmt=11086#answer1

这篇关于说明在C近,远和巨大的指针之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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