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




ME a écrit :
I am using the stack. how do I change this at link time using GPL?

There is no option for that use "new" to allocate the array instead of
declaring it on the stack.

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: performance question related to BST traversal
    ... Suppose I have to traverse the BST by Preorder, say, without using ... Suppose I use a stack ... Instead of an array of nodes, I use a singly linked list. ... allocate an array of nodes and link them into a free list. ...
    (comp.lang.c)
  • Re: Stack or Heap
    ... that often allocated on the stack. ... on an array then the compiler *might* attempt to allocate a temporary ... array result off of the stack to hold the result. ... is no such protection for C programmers using gcc. ...
    (comp.lang.fortran)
  • Re: On VLAs and incomplete types
    ... from a stack. ... The real advantage, though, comes with code like your 2D array ... allocate and deallocate memory, so there must be an explanation for ... The generation of dynamic memory is more complicated and requires ...
    (comp.lang.c)
  • Re: Globally declared arrays
    ... I noticed that my colleague was declaring local arrays on the stack, ... What is a "global array on ...
    (comp.lang.c)
  • Re: Stack or Heap
    ... are allocated on the stack whereas allocated variables ... that often allocated on the stack. ... on an array then the compiler *might* attempt to allocate a temporary ... array result off of the stack to hold the result. ...
    (comp.lang.fortran)