From: Wes Bauske <wsb@paralleldata.com>
Subject: Re: More f2c problems
Date: Tue, 17 Feb 1998 16:02:42 -0600 [thread overview]
Message-ID: <3194eab43df30a7ab3b4c2bcae40267a.axp-list@archive.invalid> (raw)
Gerald/Harvey,
Do you really need shared libraries or just smaller subroutines
so the number of constants generated is smaller per routine?.
I build quite large binaries but most routines don't exceed
500 lines of code.
(I stick with egcs now that it has a reasonable g77 but did
use f2c to start with before g77 got the right answers)
One other thing Toon mentioned. If the code requires promoting
REAL's to double precision, why not just run something like sed
on it and just replace the definitions and add the standard FORTRAN
variable definitions explicitly to the code? I have probably 100K
lines of code I work with regularly and although all my code uses
explicit variable definitions already("IMPLICIT NONE" helps find
errant variables), it wouldn't take long to add that sort of thing.
Just a thought. I've had to move code between systems/compilers
before and that sort of thing was minor compared to re-doing the
I/O software (multi-GB file accesses, re-writing user interfaces)
since I just setup scripts to edit the source the way I wanted it.
Wes
Harvey J. Stein wrote:
>
> Gerald Brandt <gbr@hvdc.ca> writes:
>
> > Hi there,
> >
> > I have some more f2c problems. Again, all this works on an Intel/Linux
> > system.
> >
> > Alpha/Linux RedHat 4.2
> >
> > brand new f2c from netlib.
> >
> > Compiling a small(ish) program works like a charm.
> >
> > Compiling a VERY large program results in the following errors:
> >
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__100
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__300
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__40
>
> I believe that's the problem with older versions of ld not being able
> to cope with certain large sections in the executable file.
>
> I think there're 2 solutions:
>
> 1. Split the code into a set of shared libraries, or
> 2. Upgrade binutils.
>
> I don't know which version of binutils is sufficiently new to deal
> with this.
>
> In any case, the problem is unrelated to f2c in the sense that very
> large C programs will cause the same problem (I had this problem with
> bigloo).
>
> --
> Harvey J. Stein
> Berger Financial Research
> hjstein@bfr.co.il
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1998-02-17 22:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-17 22:02 Wes Bauske [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-02-17 19:52 More f2c problems Harvey J. Stein
1998-02-17 16:16 Gerald Brandt
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox