On one particular implementation derived from 3.15 sources, I had to use
the linker argument "-Xlstack= 10485760" to get 10 MB. You might look
at 'man ld' on your machine to see if there's an alternative.
As the requirements changed, I gave up and allocated space on the heap,
though.
--
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/
If it means overflow of a stack of exceptions, then isn't it possible
that your program has a logic fault that is exhausting that stack?
Is this a multithreaded program?
D.
PS: I've heard it said that the default stack size is rather
small on windows, but I'm afraid I don't know how this relates
to GNAT/gcc.
> for Default_Switches ("ada") use ("-g", "-Xlinker
> stack=0x10000000,0x10000000");
I notice the absence of two hyphens. Is that intentional?
--
Björn Persson PGP key A88682FD
omb jor ers @sv ge.
r o.b n.p son eri nu
You need to additionally use the pragma Storage_Size (...) in the tasks
at risk. If it's the main task, you may need to move everything to a
dummy task.
I have had success using this format: --Xlinker --stack=4000000,4000000
Unless you're using a very small, very old machine, 10 megabytes is
probably a tiny fraction of your total memory. Is there any reason
not to try 20 megabytes, or 100?
And as Alex R. Mosteo pointed out, you might also have to worry about
Storage_Size for tasks.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
jim
In article <nospam-BBEA5F....@news-server.woh.rr.com>, John