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.
Posted on 2001-06-15 19:52:00 by CodinMonkey
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:

MyDummy proc
        LOCAL Temp[4096]:DWORD
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.
Posted on 2001-06-16 00:15:00 by Iczelion