Re: Stack allocation

2011-11-18 Thread David Brown
On 18/11/2011 14:38, Alexandru Juncu wrote: On Fri, Nov 18, 2011 at 1:24 PM, David Brown wrote: On 18/11/2011 10:27, Alexandru Juncu wrote: Hello! I have a curiosity with something I once tested. I took a simple C program and made an assembly file with gcc -S. The C file looks something lik

Re: Stack allocation

2011-11-18 Thread Mihai Donțu
On Fri, 18 Nov 2011 15:38:25 +0200 Alexandru Juncu wrote: > Thank you for still answering. I apologize, but I looked at the lists > and this one seemed the most generic. Can you redirect me to another > list where this thread would be appropriate? > See 'gcc-help': http://gcc.gnu.org/lists.html

Re: Stack allocation

2011-11-18 Thread Alexandru Juncu
On Fri, Nov 18, 2011 at 1:24 PM, David Brown wrote: > On 18/11/2011 10:27, Alexandru Juncu wrote: >> >> Hello! >> >> I have a curiosity with something I once tested. I took a simple C >> program and made an assembly file with gcc -S. >> >> The C file looks something like this: >> int main(void) >>

Re: Stack allocation

2011-11-18 Thread David Brown
On 18/11/2011 10:27, Alexandru Juncu wrote: Hello! I have a curiosity with something I once tested. I took a simple C program and made an assembly file with gcc -S. The C file looks something like this: int main(void) { int a=1, b=2; return 0; } The assembly instructions look like this