Setting the stack size

Andrew Wiley debio264 at gmail.com
Wed Dec 1 13:12:33 PST 2010


On Wed, Dec 1, 2010 at 2:36 PM, bearophile <bearophileHUGS at lycos.com> wrote:

> Franciszek Czekala:
>
> > How do you set the stack size for D programs?
>
> On Windows with DMD this is how to set the max stack size to about 1.5 GB
> of the "test.d" module:
> dmd -L/STACK:1500000000 test.d
>
> (I'd like D to have a standard syntax (maybe a pragma(...)) to tell the
> other parts of the compilation chain how much stack to use).
>

If the stack size is only set by the executable on Windows, I don't see how
that would be useful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101201/ba0dde84/attachment.html>


More information about the Digitalmars-d mailing list