Relationship Between Map File and Physical Memory (48241)
The information in this article applies to:
- Microsoft LINK for MS-DOS 3.x
- Microsoft LINK for MS-DOS 4.x
- Microsoft LINK for MS-DOS 5.x
This article was previously published under Q48241 SUMMARY
In situations where memory is very short or where CodeView interacts
with your program, it is sometimes necessary to use the DEBUG.COM
program supplied with DOS.
Using DEBUG is more difficult than using SYMDEB or CodeView because
DEBUG has no symbolic features. You must use the map produced by the
/M option when you link with a standard DOS overlay linker (i.e., not
a segmented executable linker) to locate specific parts of your
program.
However, since DOS relocates programs when it loads them, the
addresses given in the map need conversion before you can use them.
This conversion is simple: DOS adds the address of the start segment
(defined below) to each segment address in the load map. The offsets
never change from the values shown in the link map -- only the
segments change.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kb16bitonly KB48241 |
---|
|