Inlining vs the stack
Andrew Pinski
pinskia@physics.uc.edu
Fri Aug 12 20:06:00 GMT 2005
On Aug 12, 2005, at 4:00 PM, Dale Johannesen wrote:
> Sometimes it matters, as in the original example:
>
> c() { char x[1000000]; }
> a() { b(); c(); }
> b() { a(); c(); }
>
Actually in this case, x is removed so it does not matter at all.
This case though it does matter:
int f(int*); int g(void); int h(void); int i(void);
int g(void) { int a[1000000]; return f(&a[0]);}
int h(void) { i(); return g(); }
int i(void) { h(); return g(); }
-- Pinski
More information about the Gcc
mailing list