stack frame of gcc?

Wang, Freeman (Xiaoguang) Freeman.Wang@Marconi.com
Thu Aug 16 15:56:00 GMT 2001


Hi,

What controls the stack frame of functions when compiled with gcc?

I found in some code that most of the functions follow the same convention:
pushl %ebp  
movl %esp,%ebp 
but there are still some functions have a strange header.

If the options are : -fno-defer-pop -funsigned-char -fdollars-in-identifiers
-nostdinc -fno-builtin -fvolatile -O2 -pipe -march=pentium, -DCPU=PENTIUM,
which kinds of functions will be assigned the conventional header? 

How many variations? 

Thanks
Freeman



More information about the Gcc mailing list