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 - -ga remove array check calls http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Ga                 Remove array check calls
------------------------------------------------------------------------------
 Syntax
   -Ga

 Arguments
   None.

 Default
   Array range check calls generated.

 Description
   The -Ga switch disables code generation for array range checking.
   By default, object modules created by Force contain calls to a routine
   that checks if the application tries to access array elements outside the
   defined array bounds. If this happens, a run-time error will be generated.

   After having carefully tested the application (without such kind of
   run-time errors), you might consider to turn array range checking off.
   This results in a slightly smaller size of the executable file plus a
   small increase in execution speed. In this case, uncontrolled access to
   memory outside array bounds can cause disasterous results.

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

See Also: #pragma RANGE

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