This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran patch - g77 record markers
On Tue, May 31, 2005 at 07:02:11PM +0300, jblomqvi@cc.hut.fi wrote:
> On Tue, 31 May 2005 07:52:19 +0200 FX Coudert <fxcoudert@gmail.com> wrote:
>
> > > I am with Steve on this. I would suggest libgfortran and libg77.
> > This
> > > way the new library libg77 can be used for other things that crop up.
> >
> > But then, the option should not be -frecord-mark-g77 but -fg77-io.
> > Although I don't understand the need for a separate library. Couldn't
> > different routines in the same library do the same trick? Obviously,
> > the
> > less libraries involved, the better.
>
> The choice of default record marker is made at link time by linking in
> different libraries (with the same API). So for every record marker
> format, a separate library is needed. Perhaps it's cludgy, but I don't
> know of any simpler way.
>
I was wondering about the need for 2 separate, complete, libraries.
I guess the above answers that. Should we then consider doing
something simliar to f2c where it has a libI77, libU77, and libF77?
That is, we should have a libF95 with the common intrinsics
procedure, and a libF95io for the current IO implementation and
libF95io_g77 for Bud's and your implementation of g77 record marks.
The libraries (ie., libgfortran.a and libgfortran.so.0) currently
take about 4.5 MB of disk space. Duplicating the libs for g77
record marks comes to 9 MB, and if someone decides to deal with
the HP record mark, we'll have 13.5 MB, etc. Yes, I know disks
are getting bigger and cheaper, but having several libraries
with numerous duplicate entries seems inelegant.
--
Steve