Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -gw ds reloaded on function entry
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
-Gw DS reloaded on function entry
------------------------------------------------------------------------------
Syntax
-Gw
Arguments
None.
Default
DS in not reloaded.
Description
The -Gw switch instructs the compiler to generate code at the entry of
each function to reload the segment address of DGROUP in the DS register. This
option slightly increases the code size, but its use can be necessary for
programs running under operating systems other than DOS. Windows DLL
sources must be compiled using the -Gw switch.
Example
. Reload the DS register at function entry.
force.exe -Gw test.prg
. Disable array and stack check calls, and reload DS (used with Windows
DLL compilations).
force.exe -Gasw test.prg
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson