X86程序可用内存扩展方案 1、 进入菜单找到Visual Studio 2017菜单下的 适用于 VS 2017 的 x64 本机工具命令提示 的子菜单项,右键单击弹出菜单,选择更多,选择以管理员身份运行。 2、 在当前dos窗口运行以下指令(扩展内存到4GB): editbin /largeaddressaware C:\Users\hxx\Desktop\mCloud.exe 其中后面的文件路径是所需要扩展内存的exe文件绝对路径。(通常是安装目录下的主程序路径) 执行后,打印以下信息: C:\Windows\System32>dumpbin /headers C:\yidongyunpan\mCloud\mCloud.exe Microsoft (R) COFF/PE Dumper Version 14.16.27045.0 Copyright (C) Microsoft Corporation. All rights reserved. 3、 查看指令是否已经成功执行,运行以下指令: dumpbin /headers C:\Users\hxx\Desktop\mCloud.exe 其中后面的文件路径是所需要扩展内存的exe文件绝对路径。(通常是安装目录下的主程序路径) 没执行内存扩展前或执行指令不成功时候,会打印以下信息: FILE HEADER VALUES 14C machine (x86) 5 number of sections 6311A64D time date stamp Fri Sep 2 14:44:29 2022 0 file pointer to symbol table 0 number of symbols E0 size of optional header 102 characteristics Executable 32 bit word machine 执行指令成功后,会打印以下信息: FILE HEADER VALUES 14C machine (x86) 5 number of sections 62FC9DFA time date stamp Wed Aug 17 15:51:22 2022 0 file pointer to symbol table 0 number of symbols E0 size of optional header 122 characteristics Executable Application can handle large (>2GB) addresses 32 bit word machine
cloudSyncDisk.pro QCefWing.pro QMAKE_LFLAGS += /LARGEADDRESSAWARE
|