Software Archive
Read-only legacy content
17061 Discussions

Optimization, POINTERs, PURE, and ELEMENTAL

michael-a-carr
Beginner
276 Views
How does the POINTER keyword affect the level of optimization the compiler can achieve? Similarly, what optimization benefits do I get from PURE and its friend ELEMENTAL?

On SGI, I know that the POINTER keyword seriously hampers the level of optimization that can be achieved. However, there are compiler directives that can be used to identify "safe" pointers and therefore allow the optimizer to proceed as normal. Does Compaq Fortran have similar restrictions and are there similar compiler directives I can use to identify safe pointers?

Thanks!
0 Kudos
0 Replies
Reply