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 all http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
This option selects the generation of traceable stack frames for all
functions regardless of whether they contain calls or require stack frame
setup.  This option is intended for developers of embedded systems
(ROM-based applications).
To use Watcom's "Dynamic Overlay Manager" (16-bit 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+

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