News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

About .STACK directive

Started by ogenami, November 24, 2016, 11:09:56 PM

Previous topic - Next topic

ogenami

Hi,

there is something i want to ask about .STACK directive, i've seen some examples that was containing this directive, i already know what this directive is doing but i couldn't find anything about when it should be used or not, actually i don't use it, but i just don't want to leave things uncertain.

Thanks...

Adamanteus

 In Windows 32-64 bits the stack segment is elemenated, so directive stayed unused - but for good style of programming it possible stay in code. Realy for good work stack in windows progeam is need tuch loop in prolouge code of each function, in compiler it's made by commad line (Gs) switch.

hutch--

This is correct, in Win32 it has no purpose, its a Win16 leftover as ML.EXE will still build 16 bit applications.  In Win32 you set stack parameters in the linker options.