Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28464 Discussions

Help: how to specify 'stack reserve size' in command line?

Zhanghong_T_
Novice
350 Views
Hi all,
I need to specify the stack reserve size in command line when compiling. I tried to specify by typing such as
/stack:50000000
but failed. Can anyone give me some suggestion?
Thanks,
Zhanghong Tang
0 Kudos
2 Replies
Steven_L_Intel1
Employee
350 Views
Use /link/stack:50000000

/stack is a linker switch so you have to precede it by /link to tell ifort to pass it (and everything after that on the command line) to the linker.
0 Kudos
Zhanghong_T_
Novice
350 Views
Hi Steve,
Thank you very much. I got it.
Zhanghong Tang
0 Kudos
Reply