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



I was under the impression ,that GPL would not let you set both stack and
commit using the Wl switch?
"Stefan Bellon" <sbellon@xxxxxxxxxx> wrote in message
news:20071031102213.50fe23fc@xxxxxxxxxxxxxxxxxxxxxx
On Di, 30 Okt, ME wrote:

"Stefan Bellon" <sbellon@xxxxxxxxxx> wrote in message
news:20071030160021.19047e4e@xxxxxxxxxxxxxxxxxxxxxx

for Default_Switches ("ada") use
("--stack=0x2000000,0x10000");

Yes,

I tried the linker switch -Wl,--stack=0x10000000 in GPL
but what is the second number "0x10000" for?

The first is the stack reserve and the second is the stack commit size.
Specifying the commit size is optional. Default are 2 MB/4 KB
respectively, the above values are factor 16 to the default.

--
Stefan Bellon


.



Relevant Pages

  • Re: Thread Stacks
    ... Any CreateThread calls in library functions that specified a commit size of 0 will also change. ... Its always going to be easier to increase the reserve stack size rather than decrease it. ...
    (comp.arch)
  • Re: Thread Stacks
    ... > to trap the exception. ... > the exception handler I can't find) the current stack bottom address in ... To perform automatic commit stack expansion, ... the whole commit range into reserve space up to the touched page. ...
    (comp.arch)
  • Re: Thread Stacks
    ... >> to since the commit pages are automatically expanded. ... > taking individual page faults for each 4k page in the stack. ... > parameter of the CreateThread, CreateRemoteThread, or CreateFiber ... > reserve size is the default reserve size specified in the executable ...
    (comp.arch)
  • Re: Thread Stacks
    ... >> functions that specified a commit size of 0 will also change. ... > easier to increase the reserve stack size rather than decrease it. ... > exception during the allocation rather than during the reference. ...
    (comp.arch)
  • Re: What is the Result from Invoking this Halt Function?
    ... >> So you commit an error in one case and refrain from committing an error ... >> indicate that the correct program could not exist. ... > If you rely on what's on the stack, then you're failing to model these ...
    (comp.theory)