I have the following C program:
int main() { int c[10] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2}; return c[0]; }
and when compiled using the -S
Keep in mind that on x86 the stack grows downward. Pushing onto the stack will subtract from the stack pointer.
%rbp <-- Highest memory address -12 -16 -20 -24 -28 -32 -36 -40 -44 -48 <-- Address of array