Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!jmleonar@crdec-vax2.arpa From: jmleonar@crdec-vax2.arpa (jle) Newsgroups: comp.unix.questions Subject: F77 Optimizer problem Message-ID: <12147@brl-adm.ARPA> Date: 5 Mar 88 18:41:26 GMT Sender: news@brl-adm.ARPA Lines: 24 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