hi,

i am trying to write a Perl script that calculates the memory stack size utilized by functions by using the assembly instruction that assigns memory on stack. This is a lot like checkstack.pl for Linux.

From all the reading up i have done so far i have managed to figure out that the assembly code for allocating memory on the stack is:
Code:
 00000499: 81 EC 94 0F 00 00  sub         esp,0Ch
where 0Ch is the hexadecimal value representing the amount of memory to be allocated on the stack.

I used dumpbin /DISASM to disassemble.

am I working with the right assembly instruction? i have also seen assembly instructions like
Code:
  00004431: 83 EC 08           sub         esp,8
note the missing h, so does VC++ use both hex and integer values for allocating memory on the stack?

thanks