Questions tagged [large-address-aware]
13 questions
68
votes
4 answers
Can I set LARGEADDRESSAWARE from within Visual Studio?
I have a .NET assembly that needs to be 32-Bit and needs to be /LARGEADDRESSAWARE.
I know how to do this with EditBin, but I wonder if there is a built-in way in Visual Studio 2010? Or alternatively, did someone write an MSBuild Task for this?
Edit:…

Michael Stum
- 177,530
- 117
- 400
- 535
42
votes
3 answers
Drawbacks of using /LARGEADDRESSAWARE for 32-bit Windows executables?
We need to link one of our executables with this flag as it uses lots of memory.
But why give one EXE file special treatment. Why not standardize on /LARGEADDRESSAWARE?
So the question is: Is there anything wrong with using /LARGEADDRESSAWARE even…

Arve
- 7,284
- 5
- 37
- 41
21
votes
4 answers
LargeAddressAware Visual Studio 2015 C#
So today I decided I would update to Visual Studio 2015 (previously running the RC version with no difficulties) but now my project does not like the /LARGEADDRESSAWARE command line event.
I have a post-build event of:
call…

Rolodium
- 343
- 1
- 2
- 12
10
votes
2 answers
Application with LARGEADDRESSAWARE flag set getting less virtual memory
I have a 32-bit application consisting one EXE and multiple DLLs. The EXE has been built with /LARGEADDRESSAWARE flag set. So I expect on a 64-bit OS I should get 4 GB of user address space. But on some 64-bit Win 7 systems I am getting only 2 GB of…

Naveen
- 74,600
- 47
- 176
- 233
8
votes
5 answers
Detect pointer arithmetics because of LARGEADDRESSAWARE
I would like to switch my application to LARGEADDRESSAWARE. One of issues to watch for is pointer arithmetic, as pointer difference can no longer be represented as signed 32b.
Is there some way how to find automatically all instances of pointer…

Suma
- 33,181
- 16
- 123
- 191
7
votes
1 answer
Compiling C# with Any CPU sets Application can handle large (>2GB) addresses
I ran into this issue during performance testing.
When compiling a C# Console application with the x86 platform flag, the Large Address Aware flag is not set:
Output from dumpbin /headers app.exe:
Dump of file app.exe
PE signature found
File Type:…

Chris Weber
- 5,555
- 8
- 44
- 52
2
votes
2 answers
Kernel Mode memory size for an x86 LARGEADDRESSAWARE program on an x64 machine?
The title pretty much sums it up. I have an application compiled for x86 platforms, which has the /largeaddressaware flag set. Running it on an x64 system, I get the expanded 4GB User Mode virtual memory "for free", without having to specify the…

event44
- 630
- 5
- 17
2
votes
1 answer
Running 32bit Borland XE2 app under Win 7 64bit with /3gb switch (-GF LARGEADDRESSAWARE )?
As the title states, I am running a 32-bit application under win 7 64-bit. The application is made in C++ in Embarcadero XE2. I need more than 2GB of memory.
Steps:
I enabled the 3GB switch and I rebooted the pc.
I tried adding -GF:…

Alexandru Lucian Susma
- 199
- 2
- 10
2
votes
3 answers
LARGEADDRESSAWARE turned off after installation?
I have used the editbin /LARGEADDRESSAWARE command to change my .NET C# exe so that it can address memory > 2 GB. This works fine and I can run the dumpbin command to verify that it's been modified successfully.
I then proceed to create a .msi…

user2730707
- 39
- 7
1
vote
1 answer
ALINK error 1065 even when Windows Long Paths enabled
I am trying to get a C# Visual Studio 2019/MSBuild job to build on a Jenkins build server. I know that my file paths are too long, so I have enabled Long File Paths in the Group Policy Editor (and verified that it has persisted in the registry…

Andrew
- 342
- 3
- 12
1
vote
3 answers
.NET: LARGEADDRESSAWARE has no effect
I wanna use more than 1.2 GB RAM.
So I tried the editbin /LAGEADRESSAWARE command.
The command executes with no error but still I get out of memory exceptions at 1.2 GB.
Now I ask myself: I have several exe files in my project. Which exe file(s)…

charly_b
- 69
- 10
0
votes
1 answer
LARGEADDRESSAWARE Without /3Gb on 32bit os?
I've an application, which is compiled in 32-bit because we have some customers still in 32-bit.
We are aware that there is a limitation of 2GB of RAM that we can use.
I've recently been told that we can flag the exe application to increase this…

J4N
- 19,480
- 39
- 187
- 340
0
votes
2 answers
Linux/64-bit /LARGEADDRESSAWARE equivalent
Windows enables you to restrict address-space usage to a 32-bit resolution by setting a flag in the PE header (/LARGEADDRESSAWARE). To elaborate: When set, this flag effectively emulates a 32-bit virtual address space environment (image is loaded…

Emjayen
- 113
- 1
- 8