How To Create Static Overlays with Macro Assembler (66054)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
This article was previously published under Q66054 SUMMARY
The Overlay Manager is a part of the run-time library of any Microsoft
high-level language (C for example). One such library must be used in
order to create a statically overlaid executable.
Page 285 of the "Microsoft Macro Assembler 5.1 CodeView and Utilities
Guide" explains the use of overlays with assembly-language modules.
Only modules with a 32-bit (long) call/ret instruction can be
overlaid. Routines called should be declared as FAR. The linker is
unable to produce overlay modules that can be called indirectly with
function pointers. The root module is the resident (nonoverlaid)
portion of the program, and the overlaid module is the transient
portion.
If you need to modify the behavior of the Overlay Manager, the source
code is available as part of the Microsoft C Run-time source code,
which can be ordered through Microsoft Sales and Customer Service by
calling (800) 426-9400.
Note that C/C++ 7.0 and Visual C++ for Windows includes support for both
static overlays and dynamic (MOVE) overlays.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kb16bitonly KB66054 |
---|
|