I've below function in driver:
function MyFilter( )
{
bool PassThrough = true;
if ( <some condition> )
{
PassThrough = false;
}
if ( PassThrough )
{
// some local stack variables //Locals #1
IofCallDriver( );
}
else
{
// more local stack variables //Locals #2
NonPassThroughWork( );
}
}
My query:
When above driver function is compiled (using MSFT C++ compiler), how much would be the stack consumption due to local variables? Would the local variable stack size of 'MyFilter' reflect the size due to the one defined in the inner scope (i.e., Locals #1, #2)?