-Ansi: Strict ANSI

Group

LANGUAGE

Scope

Function

Syntax
  -Ansi
  
  
Arguments

None

Default

None

Defines

__STDC__

Pragmas

None

Description

The -Ansi option forces the Compiler to follow strict ANSI C language conversions. When you specify -Ansi, the Compiler refuses all non-ANSI-compliant keywords (for example, __asm, __far and __near), and generates an error.

The ANSI-C compiler also does not allow C++ style comments (those started with //). To allow C++ comments, even with -Ansi set, set the -Cppc: C++ Comments in ANSI-C compiler option.

The asm keyword is also not allowed when -Ansi is set. To use inline assembly, even with -Ansi set, use __asm instead of asm.

The Compiler defines __STDC__ as 1 if this option is set, or as 0 if this option is not set.