April 18, 2004 [BUG] Where is the stack size limit defined? | ||||
---|---|---|---|---|
| ||||
WinXP, dmd 0.82 <code> void okay(){ int[259013] arr; } void err(){ int[259014] arr; } void main(char[][] args){ if( args.length > 1) switch( args[ 1]){ case "okay": okay(); break; case "err": err(); break; } } </code> Gives a runtime error on call with parameter "err" and runs okay with parameter "okay". Where is this limit defined? Why are these unused arrays not optimized away? With -O switch also the "okay"-case yields a runtime error. So long! |
April 19, 2004 Re: [BUG] Where is the stack size limit defined? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | "Manfred Nowak" <svv1999@hotmail.com> wrote in message news:c5v49l$jpr$1@digitaldaemon.com... > WinXP, dmd 0.82 > > <code> > void okay(){ > int[259013] arr; > } > void err(){ > int[259014] arr; > } > void main(char[][] args){ > if( args.length > 1) > switch( args[ 1]){ > case "okay": okay(); > break; > case "err": err(); > break; > } > } > </code> > > Gives a runtime error on call with parameter "err" and runs okay with parameter "okay". > > Where is this limit defined? See www.digitalmars.com/ctg/ctgDefFiles.html#stacksize > Why are these unused arrays not optimized > away? With -O switch also the "okay"-case yields a runtime error. > > So long! |
Copyright © 1999-2021 by the D Language Foundation