The information in this article applies to:
SUMMARY
The information listed below addresses the following topics relating
to using the middle model of compilation (-AM) when a module's code
segment has been renamed using the -NT switch, and the segment is
declared movable in the module definition (.DEF) file:
MORE INFORMATION
Windows does not necessarily keep the code segment locked. The
Microsoft C Compiler uses the BP register as a "frame pointer". Local
variables and parameters are always accessed using offsets from the BP
register. The BP register is initially even, and the Windows stack is
word aligned. When a FAR call is made, BP is increased by one. If the
code segment is discarded, the stack is walked and patched. By
determining if BP is odd or even, Windows can tell whether the call is
FAR or NEAR.
Additional query words: 3.00 3.10 no32bit
Keywords : kb16bitonly |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |