Re: Gnat storage size



On Sat, 26 Aug 2006 19:26:56 UTC, tmoran@xxxxxxx wrote:

What command line parameter do I need with Gnat 3.15p to increase the
main program's stack size?

-largs -Wl,--stack=0x1000000

see the GNAT User's Guide: 5.3 Setting Stack Size from gnatlink

gnatmake big -largs -Wl,--stack=0x1000000
works for a parameter of 4022 but gives:
raised STORAGE ERROR : EXCEPTION_STACK_OVERFLOW
with a parameter >= 4023, while either of
gnatmake big -largs -Wl,--stack=0x2000000
gnatmake big -largs -Wl,--stack=0x8000000
work for 4023 .. 4025 but 4026 again gives:
raised STORAGE_ERROR : big.adb:4 object too large

For what's it worth, I just installed Gnat 2006 for Windows, and
converted your test procedure. By using the -Xlinker
--stack=0x10000000 on it, I was able to successfully run big 64000 on
XP (technically, Tablet PC).

So either you need to use the -Xlinker variant, or there is a
limitation in the 3.15 version of the compiler. Or you are using an
older version of Windows that doesn't support this.

--

.



Relevant Pages

  • Re: GNAT GPL 2005: Too clever by half?
    ... GNAT GPL 2005 Edition is just fine. ... They don't want to spend time trying to figure out how to get a compiler environment built for windows - they want to install it and get on with developing. ... Most of the people I've got using Ada are using Gnat 3.15p and they may not feel a need to switch. ...
    (comp.lang.ada)
  • Re: Hey Frozenator
    ... bottom of the hill, soooo...it's Gnat Central here. ... until I put my glasses on that is. ... and do a "bug check" before I use the bathroom. ... The windows have these heavy plastic, almost mylar coverings, like ...
    (alt.2600)
  • New Ada ANSI console/X terminal game
    ... Windows, even assuming that there is a suitable ANSI terminal ... Ada.Command_Line.Environment (I didn't use it myself because GNAT ... To compile under Linux/Unix, assuming you have GNAT and libadasockets ... (from The Mainspring of Human Progress) ...
    (comp.lang.ada)
  • Re: Ada compiler/debugger/GUI development IDE for WindowsXP/Linux
    ... but the OP also asked about a GUI builder. ... is the GtkAda GUI environment that you can get for either Windows or Linux. ... That will give you the GNAT ... > platform-independent IDE for GNAT, but its publicly available version is ...
    (comp.lang.ada)
  • Re: Advice on abort
    ... >>> were trying to read from a closed socket. ... A return of 0 is not a bug. ... > encountered a particular behavior with GNAT on Windows, ...
    (comp.lang.ada)