restrict, Qrestrict

Determines whether pointer disambiguation is enabled with the restrict qualifier.

IDE Equivalent

Windows: Language > Recognize The Restrict Keyword

Linux: Language > Recognize The Restrict Keyword

Mac OS X: None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-restrict

-no-restrict

Windows:

/Qrestrict

/Qrestrict-

Arguments

None

Default

-no-restrict or /Qrestrict-

Pointers are not qualified with the restrict keyword.

Description

This option determines whether pointer disambiguation is enabled with the restrict qualifier. Options -restrict (Linux and Mac OS X) and /Qrestrict (Windows OS) enable the recognition of the restrict keyword as defined by the ANSI standard.

By qualifying a pointer with the restrict keyword, you assert that an object accessed by the pointer is only accessed by that pointer in the given scope. You should use the restrict keyword only when this is true. When the assertion is true, the restrict option will have no effect on program correctness, but may allow better optimization.

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.