Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

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

OP1
New Contributor III
310 Views
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 Reply
Steven_L_Intel1
Employee
310 Views

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.
0 Kudos
Reply