Setting link option /STACK in Visual COBOL for Visual Studio

0 Likes
over 8 years ago

Problem:

Customer is using Visual COBOL for Visual Studio and needs to increase the stack size that is linked into a native .EXE.

Is there a way to set this option other than by setting the LINK environment variable with the "/STACK:8000000" value?

Resolution:

Setting the LINK environment variable should also work under Visual COBOL for linking native .exes but you can additionally set the link directives in the project properties.

Open the properties and look at the COBOL Link tab. Near the bottom there is a field called Additional Directives.

You can pass directives to the linker by specifying the -wl option along with the directive.

-wl"/STACK:8000000"

For managed code we have a directive called -ILSTACKSIZE that allows you to do this.

Comment List
Anonymous
Related Discussions
Recommended