F77 Optimizer problem

jle jmleonar at crdec-vax2.arpa
Sun Mar 6 04:41:26 AEST 1988


Folks, for those who answered my recent post regarding linking C
and F77 routines, thanks, it let me finish the job fast.  Now, there
seems to be a small problem with the -O switch of the F77 compiler,
namely the code bombs horribly when it's used.

To be explicit, the code compiles without the -O flag, and the resulting
program runs correctly (i.e. the results match those obtained on another
OS/machine), but it runs slowly.  Benchmarks indicate that the code,
running on a 785 "appears" to be the same speed as a 730 or 750 (?!).

The man entry for F77 indicated that the compiler was experimental, and
that the optimizer was known to produce errors.  What I'm interested in
knowing is (1) Is the effect of the optimizer worth the effort needed to
figure what routines bomb?  (2) Is this a common event - or am I subject
to a special case?  (3) Is there a better F77 than the portable one
(there has to be...), and does it/do they run under BSD?

I'd appreciate learning of/from those who have used BSD/F77 to develop
numerically intensive codes (mine is a computational chemistry application).

                                     Thanks in advance,

                                          Joe Leonard
                                     <jmleonar at crdec.arpa>



More information about the Comp.unix.questions mailing list