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 12:25 PM, Paul Koning wrote:


"Mike" == Mike Stump <mrs@apple.com> writes:

Mike> On Aug 12, 2005, at 10:39 AM, Dale Johannesen wrote:
We had a situation come up here where things are like this
(simplified, obviously):

c() { char x[1000000]; }

Mike> I think we should turn off inlining for functions > 100k stack Mike> size. (Or maybe 500k, if you want).

Why should stack size be a consideration?  Code size I understand, but
stack size doesn't seem to matter.

Sometimes it matters, as in the original example:


c() { char x[1000000]; }
a() { b(); c(); }
b() { a(); c(); }


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