>I have to port some fortran code from VAX to linux. Having got
>rid of most of the syntax problems my program now crashes with a
>segmentation fault. Therfore I would like to have a look at the
>program with a de*. But as far as I can see gdb does not
>support fortran (yet). Is there a de* which will support
Get the beta version of g77. We have recently ported over 200
astronomical programs, called FTOOLS, to Linux and it was very easy
using g77, version 0.5.18 to be specific with the Gcc 2.7.2. You can
use gdb to track down any difficulties. Oh, our package is over a
million lines of code, and have FORTRAN calling C routines and vice-versa.
We were able to port the entire package to Linux in about 2 weeks of work,
on and off. There are still some minor bugs dealing with uninitialized
variables in some of the packages, but those are easy to track once they
Quote:>F2c, to make C code which is then debuggable by gdb does not seem to be
>an alternative, as it crashes all the time. Maybe because the source
>files are huge, up to ~1.5 meg.
Using f2c creates virtually unreadable C code, so really isn't
worthwhile to attempt to debug. The installation of g77 is quite easy since
it is basically a patch to the standard gcc source. As a result you install
the g77 patch and go a complete rebuild. G77 uses the same backend as
do gcc and g++.
Quote:>And, no I do not want to rewrite the program in C I just want to
No need with g77. Give it a try. We are going to move to support
g77 on all of the platforms that our astronomical tools have to function
on shortly. I think you will be pleasantly surprised with its ease of use.