Re: Largest size array in Gnat 2005 for the PC?
- From: Stefan Bellon <sbellon@xxxxxxxxxx>
- Date: Tue, 30 Oct 2007 16:00:21 +0100
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;
--
Stefan Bellon
.
- Follow-Ups:
- Re: Largest size array in Gnat 2005 for the PC?
- From: ME
- Re: Largest size array in Gnat 2005 for the PC?
- From: Pascal Obry
- Re: Largest size array in Gnat 2005 for the PC?
- References:
- Largest size array in Gnat 2005 for the PC?
- From: ME
- Re: Largest size array in Gnat 2005 for the PC?
- From: Pascal Obry
- Re: Largest size array in Gnat 2005 for the PC?
- From: ME
- Re: Largest size array in Gnat 2005 for the PC?
- From: Pascal Obry
- Largest size array in Gnat 2005 for the PC?
- Prev by Date: Re: Largest size array in Gnat 2005 for the PC?
- Next by Date: Re: Largest size array in Gnat 2005 for the PC?
- Previous by thread: Re: Largest size array in Gnat 2005 for the PC?
- Next by thread: Re: Largest size array in Gnat 2005 for the PC?
- Index(es):
Relevant Pages
|