whats the difference between these? C:\masm32\bin\link /STACK:2000000,2000000 /SUBSYSTEM:WINDOWS /LIBPATH:c:\masm32\lib Sheep.obj rsrc.res C:\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:c:\masm32\lib Sheep.obj rsrc.res what does the top one do that the bottom one doesn't? Recently i've been compiling all my programs with the bottom one, but i got an error when starting my latest compile. It worked when i used the top one.
The difference between the two is how much memory to be preallocated for the stack. If you use LARGE amount of memory on the stack like:
The amount exceeds the default stack provided by the assembler. When you actually use the local memory, page fault will occur because some of the memory is not allocated. In this case, you need to tell the linker that you need more stack memory.
MyDummy proc LOCAL Temp:DWORD