C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Real-Mode Windows Entry/Exit Code (/Gq)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Gq
 
     The /Gq option is provided to maintain functional compatibility
     with the /GW option in Microsoft C version 6. It generates
     entry/exit code for real-mode Windows functions not explicitly
     marked __export. The /Gq option affects an entire compilation
     module; use the /Gw option instead of the /Gq option if a module
     contains functions marked as __export.
 
     The entry/exit code that the /Gq option generates does not save
     the calling function's data segment (DS). Use the new /GW option
     (which does save DS) if DS might change during the time that a
     function is on the call stack.
     See: /GW
                                    -♦-