[J3] function references and optimization

Van Snyder Van.Snyder at jpl.nasa.gov
Tue Oct 9 16:24:16 EDT 2018


On Tue, 2018-10-09 at 12:44 -0700, Robert Corbett via J3 wrote:
> Oracle Fortran probably does the
> first optimization at high
> optimization levels.  Statement
> function references are inlined, 

The Univac Fortran V compiler (and Athena Fortran) treated statement
functions as macros.  A side effect was that a statement-function
reference could appear in a variable-definition context if its body was
allowed in that context.  I used this a lot to "fake" structures.  It's
where I got the idea to propose "component(object)" as a structure
component reference during the percent-sign controversy during F90
development.




More information about the J3 mailing list