User and Reference Guide for the Intel® C++ Compiler 14.0
Determines whether the compiler assumes a parameter of type pointer-to-const does not alias with a parameter of type pointer-to-non-const.
Linux OS and OS X: | -alias-const -no-alias-const |
Windows OS: | /Qalias-const /Qalias-const- |
None
-no-alias-const |
The compiler uses standard C/C++ rules for the interpretation of const. |
This option determines whether the compiler assumes a parameter of type pointer-to-const does not alias with a parameter of type pointer-to-non-const. It implies an additional attribute for const.
This functionality complies with the input/output buffer rule, which assumes that input and output buffer arguments do not overlap. This option allows the compiler to do some additional optimizations with those parameters.
In C99, you can also get the same result if you additionally declare your pointer parameters with the restrict keyword.
Windows: None
Linux: Data > Assume Restrict Semantics for Const
OS X: Data > Assume Restrict Semantics for Const
None