How to use more than 2GB memory on Windows XP?
2010-02-03 13:58
651 查看
How to make GiD use more than 2GB on Windows XP?
Two steps must be followed to achieve this: configure Windows so that it lets
a process use more than 2GB and enable the application to use more than 2GB.
Configuring MS Windows XP:
add the flag /3GB
to the Boot.ini
file. To do
this just open the Control panel
, click on the System
icon, on the Advanced options
panel, then press the
Configuration
button of the Start and recuperation
section. In this window click on the Edit
button inside the
System start
section and the Notepad
will pop-up with
the Boot.ini
file opened. In this file there should be a line like this:
just add the /3GB flag at the end, like:
Now the file must be saved, and MS Windows restarted
Enabling the application:
set the IMAGE_FILE_LARGE_ADDRESS_AWARE
in the .exe
file
of the application. This can be accomplished in two ways:
linking the program with the flag /LARGEADDRESSAWARE
- go to the
Properties
of your MS VisualStudio 2003 application project
and look for
the Linker
section and the System
branch. In the combo-box
menu with label name Enable Large Addresses
select the entry Support
Addresses Larger Than 2Gigabytes (/LARGEADDRESSAWARE)
.
setting this bit directly in the executable - using the program editbin.exe
located in
C:/Program files/Microsoft Visual Studio .NET/Vc7/bin
like this:
Afterwards this bit can be checked with the dumpbin.exe
utility:
Among other things a line like this one should appear:
Note 1:
The /3GB flag only works on MS Windows XP. Although MS Windows 2000 also accepts this flag,
it only lets the application use 2GB.
Note 2:
If a 32bit application with the bit IMAGE_FILE_LARGE_ADDRESS_AWARE
set is run on MS Windows XP 64bits edition
, it can address 4GB
of
memory instead of 3GB.
Note 3:
Avoid signed comparisons with pointers, pointers casting to integers (instead of unsigned integers)
and hard-wired addresses.
Two steps must be followed to achieve this: configure Windows so that it lets
a process use more than 2GB and enable the application to use more than 2GB.
Configuring MS Windows XP:
add the flag /3GB
to the Boot.ini
file. To do
this just open the Control panel
, click on the System
icon, on the Advanced options
panel, then press the
Configuration
button of the Start and recuperation
section. In this window click on the Edit
button inside the
System start
section and the Notepad
will pop-up with
the Boot.ini
file opened. In this file there should be a line like this:
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional" /fastdetect
just add the /3GB flag at the end, like:
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional" /fastdetect /3GB
Now the file must be saved, and MS Windows restarted
Enabling the application:
set the IMAGE_FILE_LARGE_ADDRESS_AWARE
in the .exe
file
of the application. This can be accomplished in two ways:
linking the program with the flag /LARGEADDRESSAWARE
- go to the
Properties
of your MS VisualStudio 2003 application project
and look for
the Linker
section and the System
branch. In the combo-box
menu with label name Enable Large Addresses
select the entry Support
Addresses Larger Than 2Gigabytes (/LARGEADDRESSAWARE)
.
setting this bit directly in the executable - using the program editbin.exe
located in
C:/Program files/Microsoft Visual Studio .NET/Vc7/bin
like this:
c:/(...)/Vc7/bin> editbin.exe /LARGEADDRESSAWARE /Path/To/The/Program.exe
Afterwards this bit can be checked with the dumpbin.exe
utility:
c:/(...)/Vc7/bin> dumpbin.exe /headers /Path/To/The/Program.exe
Among other things a line like this one should appear:
Application can handle large (>2GB) addresses
Note 1:
The /3GB flag only works on MS Windows XP. Although MS Windows 2000 also accepts this flag,
it only lets the application use 2GB.
Note 2:
If a 32bit application with the bit IMAGE_FILE_LARGE_ADDRESS_AWARE
set is run on MS Windows XP 64bits edition
, it can address 4GB
of
memory instead of 3GB.
Note 3:
Avoid signed comparisons with pointers, pointers casting to integers (instead of unsigned integers)
and hard-wired addresses.
相关文章推荐
- How to use ActiveSync Remote Display on Windows Embedded CE 6
- How to Install PHP 5 for Iis 6 on Windows Xp and 2003 - wikiHow
- How to use .netrc file on windows to save user and password
- How to use iSCSI Targets on Windows Computers
- 如何使用ODB(How to use odb On windows)
- Howto Install Windows XP / Vista on Xen
- How to install Ruby on rails in Windows 2003/xp 如何安装ROR
- How to use write and run MapReduce in eclipse on windows.
- 如何使用ODB(How to use odb On windows)
- How To Release and/or Renew IP Addresses on Windows XP | 2000 | NT
- How to use Pageheap.exe in Windows XP, Windows 2000, and Windows Server 2003
- how to use python virtualenv on windows
- How to use umdh to check Windows memory leak
- 如何使用ODB(How to use odb On windows)
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- How to use Google Test on Android-4.0.3_r1
- How to deploy a web application on Windows Azure
- How to install Maven on Windows
- How to compile and run a simple java file in jenkins on Windows
- Instructions on Unlocking More Than 2GB Ram on Windows 7 32-bit (May Work on Windows 8)