Re: Breaking the 2GB barrier

Tech-Archive recommends: Speed Up your PC by fixing your registry



Note that vs2003 only "produces" X86 code, more exactly , the V1.1 JIT compiler only emits X86 code.
Anyway, all X86 code that runs on X64 (WOW64) has access to 4GB of user memory, provided that you have set the LARGEADDRESSAWARE header flag.
LARGEADDRESSAWARE can be set by means of the editbin.exe tool from the platform SDK, like this:
editbin /LARGEADDRESSAWARE <progamfile>

Another question. If I run editbin /LARGEADDRESSAWARE on my vs2003 compiled app, can it now access more than 2GB on the Windows Server 2003 (32-bit standard or enterprise edition)? The Windows Server is setup with the /3GB switch.

Thanks.
.



Relevant Pages

  • Re: Breaking the 2GB barrier
    ... compiler only ... |>> emits X86 code. ... |>> that you have set the LARGEADDRESSAWARE header flag. ... inaccessible memory block, and the modules loaded by the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: My predictions for 2004-2005
    ... You can also get a copy of Windows Server 2003 compiled for AMD64. ... Microsoft C/C++ Optimizing Compiler Version 14.00.2207 for AMD64 ...
    (borland.public.delphi.non-technical)
  • Re: Breaking the 2GB barrier
    ... compiler only emits X86 code. ... provided that you have set the LARGEADDRESSAWARE header flag. ... And, if I compile my app as x86 on vs2005, do I also need to apply the editbin /LARGEADDRESSAWARE trick or not? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Breaking the 2GB barrier
    ... emits X86 code. ... that you have set the LARGEADDRESSAWARE header flag. ... The Windows Server is setup with the /3GB switch. ... Sure, but beware, no objects can be larger than 2GB and fragmentation (win32 heap and/or GC heap) can spool the party. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Win-64 bit tcl84.dll and tcl84.lib
    ... Fetch the Platform SDK for Windows Server 2003 R2 which handily ... contains a AMD64 version of the MSVC++ 2005 compiler. ... Environment window for a 64 bit retail target and build tcl and tk. ... them by setting INSTALLDIR on the nmake command line. ...
    (comp.lang.tcl)