comp.lang.ada
 help / color / mirror / Atom feed
From: "ME" <abcdefg@nonodock.net>
Subject: Re: Largest size array in Gnat 2005 for the PC?
Date: Tue, 30 Oct 2007 22:52:41 -0700
Date: 2007-10-30T22:52:41-07:00	[thread overview]
Message-ID: <13ig61r3bvcs6a9@corp.supernews.com> (raw)
In-Reply-To: 20071030160021.19047e4e@cube.tz.axivion.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]


"Stefan Bellon" <sbellon@sbellon.de> wrote in message 
news:20071030160021.19047e4e@cube.tz.axivion.com...
On Tue, 30 Oct, Pascal Obry wrote:
> 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.

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
where we need a larger stack on Windows:

   package Linker is
      case OS is
         when "UNIX" =>
            null;
         when "Windows_NT" =>
            for Default_Switches ("ada") use ("--stack=0x2000000,0x10000");
      end case;
   end Linker;

-- 

Yes,

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





  parent reply	other threads:[~2007-10-31  5:52 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30  4:00 Largest size array in Gnat 2005 for the PC? ME
2007-10-30  7:08 ` Martin Krischik
2007-10-30 12:27   ` Florian Weimer
2007-10-30 14:16   ` ME
2007-10-30 14:47     ` Pascal Obry
2007-10-30 18:58     ` Martin Krischik
2007-10-31  5:38       ` ME
2007-10-30 16:07   ` virtual memory, was " tmoran
2007-10-30 19:17     ` Martin Krischik
2007-10-30 20:35     ` Ludovic Brenta
2007-10-31  5:53   ` ME
2007-10-30  7:28 ` Pascal Obry
2007-10-30  9:47   ` Ludovic Brenta
2007-10-30 19:26     ` Georg Bauhaus
2007-10-30 20:17       ` Adam Beneschan
2007-10-30 22:53         ` tmoran
2007-10-30 23:39           ` Georg Bauhaus
2007-10-30 20:24       ` Adam Beneschan
2007-10-30 21:40         ` Georg Bauhaus
2007-10-30 21:48           ` Adam Beneschan
2007-10-30 21:50           ` Georg Bauhaus
2007-10-30 13:50   ` ME
2007-10-30 14:44     ` Pascal Obry
2007-10-30 15:00       ` Stefan Bellon
2007-10-30 15:16         ` Pascal Obry
2007-10-30 15:22           ` Stefan Bellon
2007-10-31  5:52         ` ME [this message]
2007-10-31  9:22           ` Stefan Bellon
2007-10-31 13:33             ` ME
2007-10-31 14:36               ` Stefan Bellon
2007-10-30 17:27 ` anon
2007-10-30 19:06   ` Adam Beneschan
2007-10-31  6:32 ` anon
2007-11-01  4:13   ` ME
2007-11-01  8:44     ` Stefan Bellon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox