Re: maximum number of variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 30, 2005 at 10:54:02PM +0100, Lexington Luthor wrote:
> Nicolas Ouellette wrote:
> >I had to check on the web real to see what you meant.  I am a physicist 
> >trying to program, and not a programmer trying to do physics :)
> >
> >According to a web site, the default stack size on OS X is 8 MB.  it is 
> >possible that I have exceeded that.  I am looking into ways of trying to 
> >increase this.
> >
> >Nicolas Ouellette
> >
> >
> >
> 
> I think for large arrays, its best to allocate them from the heap. Use 
> malloc() or new (if using C++).

I've always been told that the heap and stack grow towards each other.
If this is true, why would it be OK to create the item on the heap, vs
on the stack? If it's not true, could someone simply explain how this
works?

Bob Rossi

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux