什么是远指针,以及com/dcome中远指针的用途是什么 [英] what is far pointer and what are the use of far pointer in com/dcome

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

问题描述

任何人都可以帮助我.
在com/dcom中,什么是远指针?远poiter有什么用?

hii, can any one help me.
what is far pointer and what are the use of far poiter in com/dcom

推荐答案

远指针,近指针和大指针之间的区别是基于过时内存模型的伪像在Intel CPU分段模型上. NT(新技术)之前的Microsoft系统根据编译器和编译选项使用几种不同的内存模型.在大多数模型中,不同类型的指针解决了指向内部段或外部段,针对相同物理位置具有不同的地址段/偏移对等问题.引入保护模式(早于80286处理器,但之前一直未使用)稳定的80386体系结构)直到平面内存模型"和分页在NT中与虚拟内存有关时才消除了指针之间的区别,而虚拟内存现在依赖于内存分页(在非Microsoft系统中,如果Microsoft不使用类似的体系结构我的记忆没有让我失望).

在现代版本的Windows中,没有不同类型的指针,只有指针.但是,旧版Windows声明仍然存在于C ++文件中,并且可以安全使用.

微软已经在Windows后系统上进行工作,该系统将所有遗留的东西都放在首位.所有新兴平台均受到管理,并基于与.NET相同的标准.

—SA
The difference between far, near and huge pointers is the artifact of obsolete memory models based on Intel CPU segmented model. The Microsoft systems prior to NT (New Technology) uses several different memory models depending on compiler and compilation options. In most of the models, different types of pointers addressed the problems of pointing inside or outside segment, having different address segment/offset pairs for the same physical locations, etc. Introduction of protected mode (as early as 80286 processor but not consistently used before stable 80386 architecture) did not eliminated the difference between pointers until the "flat memory model" and paging was introduced in NT in connection with virtual memory which now relies in memory paging (in non-Microsoft systems the similar architectures was used before Microsoft, if I my memory does not fail me).

In modern version of Windows there are no different types of pointers, there are just pointers. However, legacy Windows declarations are still present in C++ files and safely used.

Microsoft is already working on post-Windows systems where all the legacy is thrown away in first place. New emerging platforms are all managed and based on the the same standard as .NET.

—SA


这篇关于什么是远指针,以及com/dcome中远指针的用途是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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