如何编写为Delphi映射4 GB的内存管理器 [英] How to write a memory manager that maps 4 GB for Delphi

查看:66
本文介绍了如何编写为Delphi映射4 GB的内存管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个对象使用了超过2 GB的虚拟内存但是Delphi只有管理者2 GB我正在考虑以太制作许多对象并将其分组,并使用Windows wow64方法进行一些操作并使用64位窗口.或者只是将内存管理器升级到4 GB并围绕Int64进行构建.实际上,我需要使用TStream作为使用Int64的基础对象,而不是整数.

I have an object that uses more than 2 gigabytes of virtual memory But Delphi only managers 2 GB I'm considering ether making a number of objects and grouping them and using the windows wow64 method some how and use 64 bit windows. Or just upgrading memory manager to 4 GB and build it around Int64. effectively I need TStream as the base object with Int64 used, instead of integers.

推荐答案

Lexdean,您是在说:

Lexdean, you're saying:

实际上,我需要使用TStream作为使用Int64的基础对象,而不是整数

effectively I need TStream as the base object with Int64 used, instead of integers

那么,您很幸运(两次),因为:

Well then, you're in luck (twice) because:

  1. Delphi的TStream使用Int64进行定位,它可以访问比4Gb大得多的文件.
  2. 如果一个TStream接口足够,您可以编写自己的TStream来执行所需的任何操作,而无需等待本机的64位Delphi编译器.

但是如果我要回答标题中的问题:

But if I were to answer the question in the title:

如何编写一个内存管理器来为Delphi映射4个演出

How to write a memory manager that maps 4 giggs for Delphi

使用32位编译器无法做到这一点.加入人群,寻求64位Delphi编译器!

There's no way to do that with an 32bit compiler. Join the crowd of people asking for an 64 bit Delphi compiler!

这篇关于如何编写为Delphi映射4 GB的内存管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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