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 - -ox include non-referenced externs http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Ox                 Include non-referenced externs
------------------------------------------------------------------------------
 Syntax
   -Ox

 Arguments
   None.

 Default
   Non-referenced external variables are omitted from the object file.

 Description
   The -Ox switch instructs the compiler to include non-referenced
   external variable names in the generated object file. By default the
   compiler filters out those external variables that are not used in the
   code, and does not place their names in the object file. This is favorable
   for saving the compiler's internal symbol table. However, sometimes
   external variables are used for pulling in specific library modules.
   The -Ox switch turns off the automatic elimination of unused external
   variables for this purpose.

 Example
   . Include non-referenced external symbols in object file.
   
     force.exe -Ox test.prg
   
   . Disable including non-referenced external symbols (override the effect
     of a -Ox switch in force.cfg).
   
     force.exe -Ox- test.prg

See Also: #pragma EXTVAR

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