does anyone use the Linker options file ?
does anyone use the Linker options file ?
in testing my code that [ab]uses the stack I needed to increase the stack size, seems to me it would be simpler to have a stack size option rather than to have the option in a file, just curious if people use the linker options
Re: does anyone use the Linker options file ?
I use the Linker option to increase the stack size as well.
To use a file for this is fine for me.
To use a file for this is fine for me.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: does anyone use the Linker options file ?
An examples would be good.
Re: does anyone use the Linker options file ?
hello idle, not sure what you meant, but here's my file to set the stack size
linker_options.txt
/STACK:2097152
linker_options.txt
/STACK:2097152
Re: does anyone use the Linker options file ?
From the interwebs:
msvc--> /STACK:256000000
gcc --> -Wl,--stack=256000000
msvc--> /STACK:256000000
gcc --> -Wl,--stack=256000000
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: does anyone use the Linker options file ?
Thanks it's good to provide examples for other people. I'm not sure you need a file though
on on linux you can use
n windows with pb 6 at least you can use
on on linux you can use
Code: Select all
ImportC "-Wl,--stack=256000000" : Endimport
Code: Select all
ImportC "/STACK:2097152" : EndImport
Re: does anyone use the Linker options file ?
thanks for the tip idle
Re: does anyone use the Linker options file ?
Very interesting!
I wound up making global def's for very big structures cause of stack limit.
I didn't think to change the stack size.
I wound up making global def's for very big structures cause of stack limit.
I didn't think to change the stack size.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: does anyone use the Linker options file ?
The change of stack size is for EXE only or works also on DLL compilation?
Re: does anyone use the Linker options file ?
I tried it, but it doesn't work. The stack size is not saved in the DLL, its defined by the parent application which uses the DLL.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: does anyone use the Linker options file ?
Thanks!
I was read that on the Microsoft info and supposse was the same on PB.
I was read that on the Microsoft info and supposse was the same on PB.