Re: Largest size array in Gnat 2005 for the PC?



Stefan Bellon a écrit :
While I agree with the given suggestion to allocate large objects on
the heap instead of the stack, there is a way to increase the stack
size on Windows. We use something like the following in our projects

Yes, but this was not the OP question.

Pascal.

--

--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
.



Relevant Pages

  • Re: C++ compiler and memory
    ... "JSmith" wrote: ... >them are heap and stack. ... the file format used in Windows is divided into ...
    (microsoft.public.vc.language)
  • Re: Out Of Memory Error and Stack Size
    ... I also know the fact that Heap Size and Stack Size are different. ... the same application works fine in Windows and ... another Linux box irrespective of the Heap Size. ...
    (comp.lang.java.programmer)
  • Re: Largest size array in Gnat 2005 for the PC?
    ... On Tue, 30 Oct, Pascal Obry wrote: ... the heap instead of the stack, there is a way to increase the stack ... size on Windows. ...
    (comp.lang.ada)
  • Re: singe thread per connection
    ... process is about 2000, with the practical maximum somewhat lower, and performance suffering significantly before that. ... If you use a different stack size than the default, or don't actually allocate one OS thread per Java thread, then the actual limit would be different. ... But in Windows, both in the regular Win32 API and under .NET, there are i/o mechanisms that can be used that allow a single thread to service an arbitrarily large number of i/o tasks. ... This allows a program to create just enough threads to keep all the CPU cores busy, and the Windows scheduler knows to treat those threads specially so that if the only other runnable thread is one that would do the same thing that the currently running thread would do, the currently running thread is allowed to just keep running, rather than being preempted for no good reason. ...
    (comp.lang.java.programmer)
  • Re: How does managed code work?
    ... Does it work the same way as the native stack with a frame pointer that is the head of a linked list of stack frames where each time we enter a function we create a new stack frame in which new variables are pushed and each time we exit a function the entire stack frame is popped? ... Can someone point me to a discussion of the managed heap? ... How does it prevent memory leaks that occur in COM when two objects reference each other and keep the others reference count nonzero? ... Because objects don't go out of scope, ...
    (microsoft.public.dotnet.languages.csharp)