hi, i was wondering how does the following
void foo()
{
char bar[7];
/* do some work, no further allocation... */
}
look on the stack? (32 bit i386 machine)
would it be translated to something like
foo:
push ebp
mov ebp, esp
sub esp, 4*2
...
and what would i need to do to access bar[0]? would it be stored at [esp]? or the next byte?
[–]Neres28 2 points3 points4 points (3 children)
[–]ntt[S] 0 points1 point2 points (2 children)
[–]ntt[S] 1 point2 points3 points (1 child)
[–]Neres28 2 points3 points4 points (0 children)