Microsoft KB Archive/68072

= .MODEL Directive Language Parameter Doesn't Preserve Case =

Article ID: 68072

Article Last Modified on 10/29/2003

-

APPLIES TO


 * Microsoft Macro Assembler 5.1 Standard Edition
 * Microsoft Macro Assembler 5.1a

-



This article was previously published under Q68072



SUMMARY
The .MODEL directive can be followed by a language parameter that determines naming, calling, and returning conventions that are used by the specified language. The example below demonstrates the syntax.

Although the language type determines the naming convention, it does not determine the case of any names used. For example if the statement &quot;.MODEL SMALL, C&quot; is used, case sensitivity of names is not preserved, even though C preserves case by default. However, an underscore is added in front of any names. Similarly, if the statement &quot;.MODEL SMALL, PASCAL&quot; is used in a program, all names are not forced to uppercase (the default for Pascal).

To ensure proper case sensitivity, use the command line option /MX (preserves case in public and external names), /MU (converts names to uppercase), or /ML (preserves case in names).

Sample Code
.model small,c ; <--- Language specifier .code

myproc proc ret end

Additional query words: 5.10 5.10a

Keywords: KB68072

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.