The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: D.F. on September 24, 2011, 10:47:07 PM

Title: .ALLOCSTACK Directive
Post by: D.F. on September 24, 2011, 10:47:07 PM
Can somebody explain what .ALLOCSTACK directive do?

I don't understand Microsoft desciption:
QuoteGenerates a UWOP_ALLOC_SMALL or a UWOP_ALLOC_LARGE with the specified size for the current offset in the prologue. .ALLOCSTACK allows ml64.exe users to specify how a frame function unwinds and is only allowed within the prologue, which extends from the PROC FRAME declaration to the .ENDPROLOG directive. These directives do not generate code; they only generate .xdata and .pdata. .ALLOCSTACK should be preceded by instructions that actually implement the actions to be unwound. It is a good practice to wrap both the unwind directives and the code they are meant to unwind in a macro to ensure agreement.
Title: Re: .ALLOCSTACK Directive
Post by: ToutEnMasm on September 25, 2011, 05:16:17 AM

http://msdn.microsoft.com/en-us/library/ck9asaa9.aspx