Re: Gnat STORAGE_ERROR



> How big is your page file(s) allowed to grow?

C:pagefile.sys is 1.1GB and H:pagefile.sys is 1.5GB, total RAM is 1GB,
the program in question needs about 16MB (I compiled it with another Ada
compiler and Task Manager said it was using 15,790KB) and the
stack=2000000 should, I think, allow 32MB. Perhaps I should have
mentioned I have the stack checking turned on. Perhaps if I turn that
off I won't get the STORAGE_ERROR? ;)

> Remember that if the stack is owned by a task,
> the stack size is limited to the default task size,
> unless you've specified a greater stack size with
> pragma Storage_Size.

This is a vanilla single task numerical computation program.
.



Relevant Pages

  • Re: GNAT parameter passing, C-style?
    ... I know of no mechanism to control that in the Ada standard ... What C compiler on what platform? ... Should the stack pointer increment or ... If there is any such thing as an Ada mechanism, ...
    (comp.lang.ada)
  • Re: Do buffers always start with the lowest memory address being the first element?
    ... > The C standard does not assume a downward-growing stack, ... > an upward-growing stack. ... C allows but does not require that the array produced ... > machine depends on both the C compiler and the machine. ...
    (comp.lang.c)
  • Re: switch statement, was compiler, status...
    ... Primary Register, Secondary Register, ... Stack, and abit of storage does it. ... This version of Small-C is copyrighted as a revision to Ron Cain's ... Croatia) is "Calculator Compiler" by Senko Rasik. ...
    (alt.lang.asm)
  • Re: subroutine stack and C machine model
    ... On a typical system the stack on entry to the function looks like this ... balance to specify the order of evaluation). ... compiler developer to find out when code can be moved around. ... I think the Standards people used compiler optimization as an excuse ...
    (comp.lang.c)
  • Re: back online again...
    ... really "acceptable") convention. ... stack machine, but the design ... target with my compiler (may need a different name for this though, ... most of this code is not likely to ever go to object files anyways... ...
    (alt.lang.asm)