Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - this option selects the generation of traceable stack frames for those http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
This option selects the generation of traceable stack frames for those
functions that contain calls or require stack frame setup.
(16-bit only) To use Watcom's "Dynamic Overlay Manager" (DOS only), you must
compile all modules using one of the "of" or "of+" options ("of" is
sufficient).

For near functions, the following function prologue sequence is generated.


     (16-bit only)
         push BP
         mov  BP,SP

     (32-bit only)
         push EBP
         mov  EBP,ESP

For far functions, the following function prologue sequence is generated.


     (16-bit only)
         inc  BP
         push BP
         mov  BP,SP

     (32-bit only)
         inc  EBP
         push EBP
         mov  EBP,ESP

The BP/EBP value on the stack will be even or odd depending on the code
model.

For 16-bit DOS systems, the Dynamic Overlay Manager uses this information to
determine if the return address on the stack is a short address (16-bit
offset) or long address (32-bit segment:offset).

Do not use this option for 16-bit Windows applications.  It will alter the
code sequence generated for "_export" functions.

Example:

     C>compiler_name toaster /of

The macro __SW_OF will be predefined if "of" is selected.

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