/Gv Compiler Option (C, OS/2)

Syntax: Default:
/Gv[+|-] /Gv-

Use /Gv to perform special handling of the DS and ES registers, for virtual device driver development. The DS and ES registers are:

  1. Saved, on entry to an external function
  2. Set to the selector for DGROUP
  3. Restored, on exit from the function

Virtual device driver development is not supported for C++ programs.

By default, the DS and ES registers are handled in a normal manner.



Summary of Compiler Options
Developing Virtual Device Drivers in OS/2 (C)