Operating System - OpenVMS
1753787 Members
7197 Online
108799 Solutions
New Discussion

Re: How do I get the Fortran compiler to consistently align record structures?

 
jreagan
Advisor

Re: How do I get the Fortran compiler to consistently align record structures?

Ah, yes.  I think Dan has spotted it.  On Alpha, you had both F77 and F90.  On Itanium, F90 only.  That would certainly raise various language differences such as applying packing to nested items.  I suspect you'd see the same undesired packing on Alpha with F90.

abrsvc
Respected Contributor

Re: How do I get the Fortran compiler to consistently align record structures?

Not to get too off target here, but there are many differences in the code that is generated from F77 and F90 compilers.  I am in the middle of correcting legacy code that was somewhat dependent upon the evaluation order of IF block conditions.  This became apparent when porting to the Itanium platform and using the F90 compiler.  The code (written intially on PDP-11s) has been working correctly for years.  Close examination of the code reveals standards violations that "worked" more by chance than design.  While the changes are not major, they are required for proper execution on the Itanium platform.

 

I suspect a similar examination and evaluation will be required here as well.

 

Having been through this with over 100,000 lines of code thus far. Let me know if I can help further.

 

Dan