Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29275 Discussões

Is there any run-time penalty related to the use of ASSOCIATE constructs?

OP1
Novo colaborador III
308 Visualizações
I am taking the plunge into the wonderful world of IVF 11.1... At last...

Among all the very exciting new features of IVF 11.1 the ASSOCIATE construct seems to be of great benefit for my code. I manipulate many complicated structures with nested derived type components. So I end up with variables which look like A(10)%B(1:3)%C(25)%D.

Hereis my question: It seems that ASSOCIATE(xxx => yyy) ismostly a convenient syntactic feature that helps make a code more manageable (easy to write/understand); but there is probably more than meet the (my) eye here and I am wondering ifthere isa penalty to pay for this at run time; or if the ASSOCIATE construct is *compiled out* when compiling the application.

Thanks in advance for shedding some light on this topic,

Olivier
0 Kudos
1 Responder
Steven_L_Intel1
Funcionário
308 Visualizações

Not that I can think of. It's primarily dealt with at compile-time. Offhand, I don't know of any extra run-time overhead for it.
Responder