Related articles |
---|
Re: Safety and legality of optimizations cliffc@crocus.hpl.hp.com (1995-03-21) |
Re: Safety and legality of optimizations Vinod.Grover@Eng.Sun.COM (1995-03-28) |
Re: Safety and legality of optimizations cliffc@crocus.hpl.hp.com (1995-04-03) |
Re: Safety and legality of optimizations cef@geodesic.com (Charles Fiterman) (1995-04-15) |
Re: Safety and legality of optimizations Dave@OCCL-CAM.DEMON.CO.UK (Dave Lloyd) (1995-04-18) |
Re: Safety and legality of optimizations cliffc@crocus.hpl.hp.com (1995-04-17) |
Re: Safety and legality of optimizations jim@meiko.co.uk (1995-04-21) |
Re: Safety and legality of optimizations clodius@lanl.gov (1995-04-26) |
Newsgroups: | comp.compilers |
From: | jim@meiko.co.uk (James Cownie) |
Keywords: | design, Fortran |
Organization: | Meiko Ltd. |
References: | 95-04-128 |
Date: | Fri, 21 Apr 1995 09:05:53 GMT |
Since this is now discussing purity of functions, you should
note that HPF has a PURE function attribute, precisely to allow the
compiler to be sure that the function is side effect free, and can therefore
be used in contexts (such as a FORALL) where functions with side effects
would not be valid.
As defined in HPF PURE subroutines are defined, and are permitted to modify
INTENT OUT or INTENT INOUT arguments. (Of course they'd be completely null if
they couldn't do this !).
I believe that the Fortran 95 (?) standard is intending to adopt parts of HPF
(including FORALL), so PURE may well be on its way into standard Fortran.
---Jim
James Cownie
Meiko Limited Meiko Inc.
650 Aztec West 130C Baker Avenue Ext.
Bristol BS12 4SD Concord
England MA 01742
Phone : +44 1454 616171 +1 508 371 0088
FAX : +44 1454 618188 +1 508 371 7516
E-Mail: jim@meiko.co.uk or jim@meiko.com
WWW : http://www.meiko.com/welcome.html
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.