KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q37664: EMULATOR_TEXT and EMULATOR_DATA Segments in Small Model

Article: Q37664
Product(s): See article
Version(s): 4.00 5.00 5.10 | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | S_QUICKC | mspl13_c
Last Modified: 8-NOV-1988

Small-model C programs compiled with the floating-point emulator
library (/FPi or /FPc option) may produce two segments of code and
data each. If there are floating-point operations in your program, the
compiler will generate these extra segments. The map file shows these
segments as EMULATOR_TEXT and EMULATOR_DATA.

EMULATOR_TEXT is the code segment for the emulator. In some cases,
small-model programs can have two code segments. Because the code in
the emulator only is accessed through far calls and interrupts, this
is not a problem. Both EMULATOR_TEXT and EMULATOR_DATA are in separate
segments from DGROUP and _TEXT in all memory models.

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.