Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -gs remove stack check calls http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Gs                 Remove stack check calls
------------------------------------------------------------------------------
 Syntax
   -Gs

 Arguments
   None.

 Default
   Stack check calls generated.

 Description
   The -Gs switch disables code generation for stack size checks.
   By default, object modules created by Force contain calls to a routine
   which checks if enough free stack memory is available whenever a routine
   is called, using stack memory. If there is not enough free stack memory
   available, a run-time error will be generated.

   After having carefully tested the application (without getting stack
   overflow run-time errors), you might consider to turn stack checking off.
   This results in a slightly smaller size of the executable file plus a
   small increase in execution speed.

 Example
   . Disable stack check calls.
   
     force.exe -Gs test.prg
   
   . Enable stack check calls (override the effect of a -Gs switch in
     force.cfg).
   
     force.exe -Gs- test.prg

See Also: #pragma STACK

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson