This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inlining vs the stack



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]