函数指针:物理或虚拟地址 [英] function pointer :physical or virtual address

查看:112
本文介绍了函数指针:物理或虚拟地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们得到一个函数或与此有关的任何对象的地址,它是该对象??

when we get the address of a function or any object for that matter,is it the virtual address or physical address of that object??

推荐答案

您询问一般的指针?

在大多数操作系统中,他们的逻辑地址。

On most operating systems, they are logical addresses.

操作系统负责将它们转换成物理地址通过虚拟内存和分页机制。这是透明的程序。这就是为什么一个被误导的节目打边界和GPFS。

The operating system is responsible for translating them into physical addresses through the virtual memory and paging mechanism. This is transparent to the program. That's why a misguided program "hits the boundaries" and GPFs.

在一些老的系统(如DOS),他们将身体,让您在内存的其他部分覆盖的东西。

On some old systems (e.g., DOS), they would be physical, allowing you to overwrite stuff in other parts of memory.

这篇关于函数指针:物理或虚拟地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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