I’m using pgi fortran 90 on a linux machine and would like to know how to determine if the compiler is using extra memory for intermediate calculations.
For example, if a and b are arrays then
does not use an extra array to store a+b before copying it to a. but if a,b,c,d,e are arrays then
would require extra memory for the two intermediate arrays. How would I check to see if this happens for less obvious cases (and to what extent)?