stack memory

Mike Stump mrs@apple.com
Fri Oct 21 23:11:00 GMT 2005


On Oct 21, 2005, at 8:05 AM, Ivan Novick wrote:
> With the sun compiler, the declared buffer is pushed onto the stack  
> upon
> entry into function foo and not only when it goes into scope.

Yup.

> Do you know if gcc will use the stack for the buffer if it never  
> goes into scope?

Yes, it usually will.  If you require that it not, use a different  
function and use noline.



More information about the Gcc mailing list