Results of not Specifying a Starting Address (24955)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 3.0x
- Microsoft Macro Assembler (MASM) 5.0
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q24955 SUMMARY
If a starting address is not explicitly specified, then the starting
address will be one of the following:
- The beginning of the code if the simplified segment directives
.model and .code are used (MASM 5.0 and later).
-or-
- The first segment loaded into memory if full segment directives
are used. This will result in the execution of the data segment
if it is the first segment loaded and the results will be
unpredictable.
Versions of the linker prior to version 5.05 do not warn if a starting
address is not specified. Link version 5.13 (shipped with MASM 6.0)
issues the following warning:
L4038: program has no starting address
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | KB24955 |
---|
|