Home > Archive > Fortran > January 2006 > gcov for fortran
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Iwan Birrer 2006-01-10, 4:11 am |
| Hello,
There is the gcov program (part of the gcc tool suite) that can be used
to perform test coverage analysis. Does anything similar exist for
Fortran 90?
Thanks,
Iwan
| |
| Tim Prince 2006-01-10, 4:11 am |
| Iwan Birrer wrote:
> Hello,
>
> There is the gcov program (part of the gcc tool suite) that can be used
> to perform test coverage analysis. Does anything similar exist for
> Fortran 90?
>
> Thanks,
> Iwan
gfortran?
Test coverage analysis is included in several proprietary offerings, e.g.
http://www.intel.com/cd/software/pr...lers/219966.htm
| |
| Iwan Birrer 2006-01-18, 3:58 am |
| Thanks for your answer, but I am looking for something in the open
source. Anybody?
Iwan
Tim Prince wrote:
> Iwan Birrer wrote:
>
>
> gfortran?
> Test coverage analysis is included in several proprietary offerings, e.g.
>
> http://www.intel.com/cd/software/pr...lers/219966.htm
| |
| Keith Refson 2006-01-18, 3:58 am |
| Iwan Birrer wrote:
> Thanks for your answer, but I am looking for something in the open
> source. Anybody?
> Iwan
One of my colleagues here at RAL recently got this working with g95,
which is after all based on gcc. Apparently the executable distributions
of g95 do not ship with libgcov.a, so you need to compile from source.
See http://www.g95.org/
sincerely
Keith Refson
--
Dr Keith Refson,
Building R3
Rutherford Appleton Laboratory
Chilton
Didcot kr AT
Oxfordshire OX11 0QX isise D@T rl D.T ac D?T uk
| |
| Tim Prince 2006-01-18, 7:03 pm |
| Keith Refson wrote:
> Iwan Birrer wrote:
>
>
>
> One of my colleagues here at RAL recently got this working with g95,
> which is after all based on gcc. Apparently the executable distributions
> of g95 do not ship with libgcov.a, so you need to compile from source.
>
> See http://www.g95.org/
>
> sincerely
>
> Keith Refson
In what way is g95 more open source than gfortran?
| |
| Keith Refson 2006-01-18, 7:03 pm |
| Tim Prince wrote:
> In what way is g95 more open source than gfortran?
You misunderstand. I made no such claim. I was merely informing
the OP that someone here has actually demonstrated gcov working with
g95. I guess that it probably works with gfortran as well as both
compilers are based on the GNU compiler suite.
Though perhaps Iwan Birrer should re-read Tim's posting for the
somewhat terse recommendation of gfortran that he obviously overlooked
on first reading.
Keith Refson
--
Dr Keith Refson,
Building R3
Rutherford Appleton Laboratory
Chilton
Didcot kr AT
Oxfordshire OX11 0QX isise D@T rl D.T ac D?T uk
| |
| Steven G. Kargl 2006-01-18, 7:03 pm |
| In article <dqlk5h$c07$1@blackmamba.itd.rl.ac.uk>,
Keith Refson <kr@isise.nd.rl.ac.uk> writes:
> Tim Prince wrote:
>
>
> You misunderstand. I made no such claim. I was merely informing
> the OP that someone here has actually demonstrated gcov working with
> g95. I guess that it probably works with gfortran as well as both
> compilers are based on the GNU compiler suite.
>
gfortran is not "based on the GNU compiler suite". gfortran
is an OFFICIAL component of the GNU compiler suite. gfortran
contributors and developement follows the exact same guidelines
as any other component of GCC. All contributions are subject
to peer review and stringent regression testing before these can
be committed to the GCC source tree.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
| |
| stevenb.gcc@gmail.com 2006-01-21, 7:57 am |
| > I guess that it probably works with gfortran as well as both
> compilers are based on the GNU compiler suite.
Actually, g95 is based on the GNU compiler suite, and gfortran is
_part_ of it.
When the g95/gfortran fork happened, the main reason was to get the
code base to be accepted as part of GCC (which is something Andy never
really wanted).
More on-topic -- yes, gcov works with gfortran, but you have to make
sure that the gcov you are using is compatible with the gfortran binary
you are using. If you build gfortran from source, you'll find a gcov
binary in the build directory (gcov is itself built as part of gcc,
too). If you use an older gcov, you may find that the coverage
information gfortran writes out is unreadable to your gcov. The gcov
data format was changed some time ago (in gcc 3.4 iirc) and the new
format is incompatible with the old one.
The same goes for g95: you have to have compatible g95 and gcov
binaries, or it will not work.
|
|
|
|
|