From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: f2c too?
Date: Fri, 23 May 1997 09:33:51 -0600 (MDT) [thread overview]
Message-ID: <f6af2e07e27dd04e55c97a9a3b2121da.axp-list@archive.invalid> (raw)
In-Reply-To: <199705231234.FAA01649@wasatch.ps.uci.edu>
The fact that you have the same problem with g77 and f2c (there
two quite different implementations) seems to indicate that the
problem lies somewhere else (although I have no idea where).
Maybe the fact that you are using unitialized variables? I do not
remember right now, but does Fortran guarantees that these values
will be wiped clean? Does f2c?
> Using this source:
>
> program foo
> integer i
> double precision x
> write(6,fmt='(i3," foo ",f12.6)') i,x
> stop
> end
>
> I try:
> f2c bar.f
Why you are not using fort77 driver? Easier on your fingers
and gdb likes results better. :-)
> gcc bar.c -lf2c -lm
> a.out
>
> And get the usual segmentation violation.
Debugger time to try to get more precise information.
I can only tell you that on two different Alpha boxes, not very
dissimilar to what you have software wise, your program prints:
0 foo .000000
Michal
--
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 parent reply other threads:[~1997-05-23 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199705231234.FAA01649@wasatch.ps.uci.edu>
1997-05-23 15:33 ` Michal Jaegermann [this message]
1997-05-24 3:56 f2c too? Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1997-05-23 13:52 J
1997-05-23 12:34 Christopher J. Grayce
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