[comp.lang.ada] Note on STORAGE_ERROR to Domain/Ada programmers

GDAU100@BGUVM.BITNET ("Jonathan B. Owen") (08/30/90)

A while back I posted a query about getting a STORAGE_ERROR
exception by attempting to invoke a procedure.  My hunch was that
I was running out of stack space.  I was a bit surprised, since
I defined a stack of 1.5Meg!

Turns out that the stack size was not increased to my specifications,
but rather remained at the default stack size of 256K.  To increase
stack size **properly** in Domain/Ada (Ver. 3.0) one must compile
a copy of config.a (supplied by the Ada product) AND make sure
it participates in the link of the exec.  This can be done by
either including a "WITH CONFIG" clause in the main procedure of
the link, or by including link directives in the Ada library.  The
latter must include a link directive to each one of the two object
files produced by the compilation of config.a (config01 and config02).
If only config02 is specified, the stack size will not be increased.
Take it from me, I mistakenly did so, and it didn't work...

                                               Jonathan

______________________________________________________________________________
  (--)    /--)     /-(\                 Email: gdau100@bguvm (bitnet)
  \ /    /--K      | \|/\   /\/) /|-\   Snail: 55 Hovevei Zion
  _/_/o /L__)_/o \/\__/  \X/  \_/ | |_/        Tel-Aviv, 63346  ISRAEL
 (/        Jonathan B. Owen             Voice: (03) 281-422

 Point of view:  A chicken is the means by which an egg reproduces an egg.
______________________________________________________________________________