wlink32 v2.0 ( build date 8 May 2016 ) does not add the .EXE extension after creating a PE file. As I understand without the OUT option, the linker does not add the correct extension :
\wcc32\bin\wlink32 /SUBSYSTEM:CONSOLE /ENTRY:_start MemoryStatus.obj /OUT:MemoryStatus.exe
This is the command demonstrating the problem :
\wcc32\bin\wlink32 /SUBSYSTEM:CONSOLE /ENTRY:_start MemoryStatus.obj
Could you add the LARGEADDRESSAWARE option to the linker? It's about the GlobalMemoryStatus API function to report the correct memory status :
If the executable is linked using the /LARGEADDRESSAWARE linker option, then the GlobalMemoryStatus function will return the correct amount of physical memory in both members.https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Attached is an example project reflecting the issue.