ios – mach_vm_allocate和vm_allocate之间有什么区别?

ios – mach_vm_allocate和vm_allocate之间有什么区别?,第1张

概述我想知道mach_vm_allocate和vm_allocate之间的区别.我知道mach_vm_allocate仅适用于OS X而不是iOS,但我不知道为什么.具有mach_vm _…函数(mach / mach_vm.h)的所有函数原型的文件只有#error mach_vm.h不受支持.在iOS中. Mac OS X 10.4中引入的新Mach VM API.从程序员的角度来看,新API与旧A 我想知道mach_vm_allocate和vm_allocate之间的区别.我知道mach_vm_allocate仅适用于OS X而不是iOS,但我不知道为什么.具有mach_vm _…函数(mach / mach_vm.h)的所有函数原型的文件只有#error mach_vm.h不受支持.在iOS中.解决方法 Mac OS X 10.4中引入的新Mach VM API.从程序员的角度来看,新API与旧API基本相同,但主要区别如下.

-Routine names have the mach_ prefixfor example,vm_allocate() becomes mach_vm_allocate() .

-Data types used in routines have been updated to support both 64-bit and 32-bit tasks. Consequently,the new API can be used with any task.

The new and old APIs are exported by different MIG subsystems: mach_vm and vm_map,respectively. The corresponding header files are <mach/mach_vm.h> and <mach/vm_map.h>,respectively.

总结

以上是内存溢出为你收集整理的ios – mach_vm_allocate和vm_allocate之间有什么区别?全部内容,希望文章能够帮你解决ios – mach_vm_allocate和vm_allocate之间有什么区别?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1064519.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存