Path: utzoo!attcan!uunet!samsung!emory!mephisto!prism!sun13!VSSERV.SCRI.FSU.EDU!mayne From: mayne@VSSERV.SCRI.FSU.EDU (William (Bill) Mayne) Newsgroups: comp.lang.fortran Subject: Re: Function calls in the middle of subroutine CALLs? -- Is it standard fortran 77 ???? Keywords: side effects, statement order, optimization Message-ID: <286@sun13.scri.fsu.edu> Date: 20 Jul 90 16:27:23 GMT References: <57505@lanl.gov> Sender: news@sun13.scri.fsu.edu Followup-To: mayne@nu.cs.fsu.edu (Bill Mayne) Organization: SCRI, Florida State University Lines: 11 In article burley@world.std.com (James C Burley) writes: > >I guess the real issue is that Fortran is a language primarily for the >expression of mathematical formulas, in which side effects and operation >ordering do not play a role. When you care about side effects and ordering, >you are told to use separate statements (or other sequence points... > Correct me if I am wrong (I am new to high performance computing), but isn't there risk that an optimizing compiler will rearrange even separate statements in some cases. Relying on side effects seems quite dangerous. Your explanation was so good I'd like to hear more. Regards.