Predefined Identifiers in Microsoft C 6.0

ID Number: Q65472

6.00 6.00a 6.00ax | 6.00 6.00a

MS-DOS | OS/2

Summary:

The information below is from the Microsoft C Compiler versions 6.0,

6.0a, and 6.0ax online Help.

This information can be accessed from the help on CL.EXE by seeking

help on the text "cl" using either the F1 key from the Programmer's

WorkBench (PWB), or by typing "qh cl" from the DOS or OS/2 command

lines. From the "CL Contents" help screen, select Preprocessor

Options, then Predefined Identifiers.

Additional reference words: 6.00 6.00a 6.00ax symbols

More Information:

The compiler automatically defines identifiers useful in writing

portable programs. You can use these identifiers to compile code

sections conditionally. These identifiers are always defined unless

otherwise stated.

Identifier Target Identified

---------- -----------------

MSDOS MS-DOS operating system

M_I86 Member of the I86 processor family

M_I86mM Memory model type

<m> = T Tiny

S Small (default)

C Compact model

M Medium model

L Large model

H Huge model

M_I8086 8088 or 8086 processor; default or with /G0

option

M_I286 80286 processor; defined with /G1 or /G2 option

_MSC_VER Identifies the version of Microsoft C

NO_EXT_KEYS Disables Microsoft-specific language extensions

and extended keywords; defined only with /Za

option

_CHAR_UNSIGNED Changes default char type to unsigned; defined

only with /J option

The _MSC_VER identifier has a value of 600 for the Microsoft C

Compiler version 6.0. This identifier is not defined in Microsoft C

versions 5.1 and earlier.

Additional reference words: 6.00 6.00a 6.00ax 5.10