Silverfrost Forums

Welcome to our forums

Stack size syntax

7 Aug 2006 10:58 #909

Hi !

Could someone explain to me please, how to change the stack size. Under Plato 3; Project; Properties; Linker Options; Set Win32 stack size, I don't understand how to enter the new stack size, that is, how to use the following instruction:

'Set the stack size to something other then the default, enter the size required (-STACK:reserve[,commit])'

Regards

Darko Grosev

8 Aug 2006 1:27 #910

Darko

Enter the new stack size as a decimal value in the edit box towards the bottom of the dialog box. This is the 'reserve' value which has a default of 50MB. Plato3 inserts the '-STACK:' in the linker command for you. You probably do not need the optional 'commit' value.

9 Aug 2006 8:43 #912

Paul,

Could you please give me an example of a ' -stack:reserve[,commit] ' command. I would use it in slink commands.txt, which implies interactive mode.

My recolection of stacksize commands is thay are more variable that the record length definition of a fortran file. Some linkers use octal, decimal or hex; some bytes, kb or mb; and I never know which one.

Thanks again for your valued support

John

10 Aug 2006 4:28 #916

John

From memory I would say...

STACK <reserve> [, <commit>]

for example

STACK 104857600

for 100MB.

But you can find the details in the help file under Win32 Platform->Using the linker.

Please login to reply.