Setting the stack size

bearophile bearophileHUGS at lycos.com
Wed Dec 1 12:36:05 PST 2010


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).

Bye,
bearophile


More information about the Digitalmars-d mailing list