View previous topic :: View next topic |
Author |
Message |
localmini
Joined: 11 Apr 2025 Posts: 2
|
Posted: Fri Jun 13, 2025 12:21 pm Post subject: Support for VOLATILE statements |
|
|
Hi! I'm all new to ftn95. I have existing Fortran code that was originally written for OpenVMS, compiled with the VSI Fortran compiler. I have managed to compile the same Fortran code on Linux and Windows with gfortran. I'm now trying out ftn95 on Windows, but I'm struggling with getting it to accept my Fortran code. For various reasons, the code contains VOLATILE statements as such:
Code: | INTEGER*4 NUM001
VOLATILE NUM001 |
but I can't seem to find a command line switch that makes ftn95 accept this construct. The Fortran code is fixed format, using byte size KIND specifications, and I'm currently trying to compile it with
Code: | ftn95 /FIXED_FORMAT /ALT_KINDS |
|
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8216 Location: Salford, UK
|
Posted: Sat Jun 14, 2025 7:05 am Post subject: |
|
|
The VOLATILE attribute is not currently implemented in FTN95 but I will add it to the wish list for the next full release of FTN95. |
|
Back to top |
|
 |
localmini
Joined: 11 Apr 2025 Posts: 2
|
Posted: Mon Jun 16, 2025 9:27 am Post subject: |
|
|
I see, thank you! |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8216 Location: Salford, UK
|
Posted: Tue Jun 17, 2025 8:02 am Post subject: |
|
|
VOLATILE and ASYNCHRONOUS have now been added to FTN95 for the next release.
This is currently a minimal implementation in that these attributes are tollerated but have no consequences other than that VOLATILE inhibits optimisation. |
|
Back to top |
|
 |
|