KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q34294: Cannot Overlay Small-Model Code

Article: Q34294
Product(s): See article
Version(s): 3.60 3.61 3.64 3.65 5.01.20 5.01.21
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 12-OCT-1988

Problem:

I have specified overlays for my small-model code, but the link map
shows that no overlays are produced.

Response:

You cannot overlay small-model code. You must change the memory model
to medium, large, or huge. Page 285 of the "Microsoft CodeView
Utilities" manual that comes with C Versions 5.00 and 5.10, MASM
Versions 5.00 and 5.10, and Pascal Version 4.00, and Page 135 of the
"Microsoft FORTRAN Optimizing Compiler User's Guide" states that you
can overlay only modules to which control is transferred and returned
by a standard 8086 long (32-bit) call/return instruction.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.