- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have project containing both fixed source linefiles and free format files.
If i change "Fortran > Language > Fixed Form Line Length" from " 72 Columns" to "80 Columns (/extend_source:80)" the free formatfiles is no longer recogniced as free format but as fixed format by the compiler.
The "Fortran > Language > Source File Format" is set to" Use File Extension"
If i change "Fortran > Language > Fixed Form Line Length" from " 72 Columns" to "80 Columns (/extend_source:80)" the free formatfiles is no longer recogniced as free format but as fixed format by the compiler.
The "Fortran > Language > Source File Format" is set to" Use File Extension"
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Don't do that. Rewrite the fixed-form files so that they conform to the 72-colum limit or, if possible, convert to free-form source for additional error-detection benefits
- Don't set the size on the whole project, but rather on the individual source files that need it
- Use !DEC$ FIXEDFORMLINESIZE:80 at the start of sources that need it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to be sure: It is not possible to have free and fixed format subroutines in one file. Correct?
Converting from one format into the other (both directions) can be done automatically with pretty printing software. I use plusfort by polyhedron software for that purpose.
Converting from one format into the other (both directions) can be done automatically with pretty printing software. I use plusfort by polyhedron software for that purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We support directives to switch back and forth among source forms in a single file, but this is generally used only for dealing with include files. I cannot recommend its general use in source code. One can also write source that is valid for both source forms - details are in the Intel language reference.
I can't imagine why one would want to convert free-form source to fixed-form...
I can't imagine why one would want to convert free-form source to fixed-form...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are still hardcore Fortran lunatics somewhere in the woods who insist on using fixed format they got accustomed to in the sixties...like me;-)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page