View Single Post
Old 11-29-2010, 12:24 AM   #3
Tonga
Formerly Kpt. Hess
 
Tonga's Avatar
 
Join Date: Sep 2008
Location: 39.20 nmi from U 9
Posts: 53
Downloads: 226
Uploads: 0
Default

From the author's commentary on the program:

Quote:
This very little tool patches x86 executables in order to let them have 4GB (instead of only 2) of virtual memory on x64 platforms. This tool comes very handy for applications which need a great amount of virtual memory like games, 3D renderization, multimedia etc. To gain these 2GB, you just have to use this tool to patch the executable (*.exe file) of the software you want to have these additional GBs of virtual memory. It can be used by clicking on it and choosing the file or through command line (e.g.: "4gb_patch file.exe"). It automatically creates a backup copy of the original executable.

Why things are this way on x64 is easy to explain. On x86 applications have 2GB of virtual memory out of 4GB (the other 2GB are reserved for the system). On x64 these two other GB can now be accessed by 32bit applications. In order to achieve this, a flag has to be set in the file's internal format.


This flag defines whether the file is allowed to access more than 2 GB or not, so it just comes down to a very small simple change - but one with great effect.
Tonga is offline   Reply With Quote