Re: Fortran compiler optimisation

lionel@quark.enet.dec.com (Steve Lionel)
Mon, 21 Nov 1994 21:24:43 GMT

          From comp.compilers

Related articles
Fortran compiler optimisation w.purvis@daresbury.ac.uk (1994-11-11)
Re: Fortran compiler optimisation doog@jade.ssd.csd.harris.com (1994-11-15)
Re: Fortran compiler optimisation lionel@quark.enet.dec.com (1994-11-21)
| List of all articles for this month |
Newsgroups: comp.compilers
From: lionel@quark.enet.dec.com (Steve Lionel)
Keywords: Fortran, errors
Organization: Digital Equipment Corporation, Nashua NH
References: 94-11-076
Date: Mon, 21 Nov 1994 21:24:43 GMT

|>c program to test bug
|> fred=10.0E-12
|> fred=(fred*1000000)*500000
|> george=10.0E-12
|> george=(george*1000000.0)*500000.0
|> print *, fred,george
|> end


DEC Fortran (FORTRAN 77) and DEC Fortran 90 produce the "correct" result of
5.0 for both FRED and GEORGE in this example. Our compilers honor
parentheses and would do all the computation at compile-time under default
optimization levels.


--


Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.