LIBANSI | NOLIBANSI

Category

Optimization and tuning

Pragma equivalent

#pragma options (libansi) (C only), #pragma options (nolibansi) (C only)

Purpose

Indicates whether or not functions with the name of an ANSI C library function are in fact ANSI C library functions and behave as described in the ANSI standard.

When LIBANSI is in effect, the optimizer can generate better code because it will know about the behavior of a given function, such as whether or not it has any side effects.

Syntax

Read syntax diagramSkip visual syntax diagramNOLIBLIB

Defaults

NOLIBANSI

Usage

The usage status of this option is inserted in the object file to aid you in diagnosing a problem with your program.

IPA effects

The LIBANSI option has the same effect on the IPA compile step as it does for normal compilation.

The LIBANSI option will be in effect for the IPA link step unless the NOLIBANSI option is specified.

The LIBANSI option that you specify on the IPA link step will override the LIBANSI option that you specify on the IPA compile step. The LIBANSI option that you specify on the IPA link step is shown in the IPA Link listing Compile Option Map for reference.

Predefined macros

__LIBANSI__ is defined to 1 when LIBANSI is specified in C++; otherwise, it is not defined.