From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199705231533.JAA15401@ellpspace.math.ualberta.ca> Date: Fri, 23 May 1997 09:33:51 -0600 (MDT) From: Michal Jaegermann Subject: Re: f2c too? 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