inlined maxval

Paul Keir pkeir@dcs.gla.ac.uk
Wed Oct 28 11:38:00 GMT 2009


Hi,

There are three versions of maxval in gfortran (maxval, mmaxval, and
smaxval). I wasn't
sure when each would be applied so I tested minimal programs containing
only a single call
to maxval using "nm"; as in "nm a.out | grep maxval".

This worked fine, but gave me another question. The simplest call to
maxval (example below),
once compiled, gives an empty result using the "nm" method. Am I right
to think that the
function call is inlined?

program main

  integer, dimension(4) :: a = (/ 1,2,8,3 /)
  print *, maxval(a)

end program main

Cheers,
P.



More information about the Fortran mailing list