Software Archive
Read-only legacy content
17061 讨论

Optimization, POINTERs, PURE, and ELEMENTAL

michael-a-carr
初学者
471 次查看
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 项奖励
0 回复数
回复