isolatedCall Optimization Option

Syntax: Default:
opt(isolatedCall, function) none

This option states that the named function has no side effects and does not depend on any side effects. Since the entities in the calling modules are not affected by the function call and the function call depends only on its parameters, there are more opportunities for optimization.

By default, VisualAge C++ makes no assumptions about side effects.

Use this option to name functions that do not have side effects and do not rely on functions or processes that have side effects. Side effects are any changes in the state of the run-time environment, such as accessing a volatile object, modifying a file, or calling another function that does so. Functions with no side effects cause no changes to external and static variables.

You can supply this option many times, each time adding a function to the list of those that do not have side effects.

You can also specify that a function has no side effects by using #pragma isolated_call in your source, provided that opt(pragmaIsolatedCall) is in effect.



Incremental C++ Build
C Compilation
Configuration Files


Set Build Options
Build
Optimize your Application


Optimization Options
Optimization Options