<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic This code is running a piece in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174864#M147073</link>
    <description>&lt;P&gt;This code is running a piece of hardware and porting FORTRAN to C is a part of renovation project for software along the hardware which is very old. I am not a big fan of code conversion myself but it has been assigned to me. I am concerned with run time errors, performance, and bad behavior after conversion and it might be also impossible after a few months of work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 19:02:32 GMT</pubDate>
    <dc:creator>heysiattalab__saeed</dc:creator>
    <dc:date>2020-05-04T19:02:32Z</dc:date>
    <item>
      <title>FORTRAN 77 F2C</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174856#M147065</link>
      <description>&lt;P&gt;Hello all. I have some FORTRAN 77 code that I am trying to convert it to C/C++ using F2C. I can compile my FORTRAN source code using IVF but when I am trying to convert it to C using F2C I get the following error :&lt;/P&gt;&lt;P&gt;Error on line 5 of TAGLINE.INS: unclassifiable statement (starts "structure/")&lt;BR /&gt;Error on line 33 of TAGLINE.INS: unclassifiable statement (starts "record/sta")&lt;/P&gt;&lt;P&gt;TAGLINE.INS is NOT my source file. It is an include file that I include it in my source code and F2C complains about include file. Here is my include file (TAGLINE.INS) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C&lt;BR /&gt;C&lt;BR /&gt;C*** &amp;nbsp;SCRATCH INPUT DATA FROM FILE FNAM &amp;nbsp;(.RTV = RAW INPUT TAG VALUE)&lt;BR /&gt;C&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STRUCTURE &amp;nbsp;/STAGRICL/&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*76 &amp;nbsp; &amp;nbsp; UFN &amp;nbsp; &amp;nbsp; !! U72 FILENAME.UP.CASE &amp;nbsp; &amp;nbsp; INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*76 &amp;nbsp; &amp;nbsp; RFN &amp;nbsp; &amp;nbsp; &amp;nbsp;! R72 FILENAME.RAWCASE &amp;nbsp; &amp;nbsp; INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LFN &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;FILENAME.LENGTH &amp;nbsp; &amp;nbsp; &amp;nbsp;INIT 0 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*32 &amp;nbsp; &amp;nbsp; USN &amp;nbsp; &amp;nbsp; !! U32 SECTION-NAME-UP.CASE INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*32 &amp;nbsp; &amp;nbsp; RSN &amp;nbsp; &amp;nbsp; &amp;nbsp;! R32 SECTION-NAME RAWCASE INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LSN &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;SECTION-NAME-LENGTH &amp;nbsp;INIT 0 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*32 &amp;nbsp; &amp;nbsp; UTN &amp;nbsp; &amp;nbsp; !! U32 TAG-NAME-UP.CASE &amp;nbsp; &amp;nbsp; INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*32 &amp;nbsp; &amp;nbsp; RTN &amp;nbsp; &amp;nbsp; &amp;nbsp;! R32 TAG-NAME-RAWCASE &amp;nbsp; &amp;nbsp; INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LTN &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;TAG-NAME-LENGTH &amp;nbsp; &amp;nbsp; &amp;nbsp;INIT 0 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*80 &amp;nbsp; &amp;nbsp; UTV &amp;nbsp; &amp;nbsp; &amp;nbsp;! U80 TAG-VALUE.UP.CASE.IN INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*80 &amp;nbsp; &amp;nbsp; RTV &amp;nbsp; &amp;nbsp; !! R80 TAG-VALUE.RAWCASE.IN INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LTV &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;TAG-VALUE-LENGTH &amp;nbsp; &amp;nbsp; INIT 0 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHARACTER*80 &amp;nbsp; &amp;nbsp; RWL &amp;nbsp; &amp;nbsp; &amp;nbsp;! R80 TAG-RAW.WHOLE.LINE &amp;nbsp; INIT BLANK&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LWL &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;TAG-RAW.WHOLE.LENGTH INIT 0 &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INTEGER*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NWL &amp;nbsp; &amp;nbsp; &amp;nbsp;! I4 &amp;nbsp;LIN.#.IN.ORIG.FILE &amp;nbsp; INIT 0 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOGICAL*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SET &amp;nbsp; &amp;nbsp; &amp;nbsp;! L4 &amp;nbsp;TAGRICL &amp;nbsp; SET YET ? &amp;nbsp;INIT FALSE&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOGICAL*4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USE &amp;nbsp; &amp;nbsp; &amp;nbsp;! L4 &amp;nbsp;TAGRICL &amp;nbsp;USED YET ? &amp;nbsp;INIT FALSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END STRUCTURE&lt;BR /&gt;C&lt;BR /&gt;C&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PARAMETER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (N1000=200)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RECORD /STAGRICL/ &amp;nbsp; TAGRICL (N1000) &amp;nbsp;! 1000.MAX TAG.NAMES.PER.FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, F2C complains about structure STAGRICL in TAGLINE.INS.&lt;/P&gt;&lt;P&gt;Thank you so much for your help and guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 22:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174856#M147065</guid>
      <dc:creator>heysiattalab__saeed</dc:creator>
      <dc:date>2020-04-29T22:10:45Z</dc:date>
    </item>
    <item>
      <title>This forum is not related to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174857#M147066</link>
      <description>&lt;P&gt;This forum is not related to F2C, which is something I can't recommend that ANYONE use in 2020. Even when F2C was reasonable to use, it wasn't intended as a tool for conversion but rather as a way to compile FORTRAN code if you had a C compiler but not Fortran.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will comment that this code is NOT FORTRAN 77. STRUCTURE, RECORD, INCLUDE, INTEGER*4&amp;nbsp;are all extensions to F77. STRUCTURE/RECORD, in particular, was a DEC extension that was not commonly implemented in F2C's time.&lt;/P&gt;&lt;P&gt;That said, if you know anything about C, and if you don't you're doomed to failure here, it is straightforward to reinterpret this as a C struct.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 14:15:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174857#M147066</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-04-30T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Hi Steve, </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174858#M147067</link>
      <description>&lt;P&gt;Hi Steve,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. What tool would you&amp;nbsp;recommend for converting a HUGE FORTRAN code to C ? The code is years of development and I can not really rewrite in C, as it would take a lot of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 15:51:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174858#M147067</guid>
      <dc:creator>heysiattalab__saeed</dc:creator>
      <dc:date>2020-04-30T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Take note of this statement</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174860#M147069</link>
      <description>&lt;P&gt;Before you can use f2c, you would need to convert your source code to standard Fortran 77, or the dialect of it that f2c understands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take note of this statement from page 2, para 1 of the f2c documentation at &lt;A href="http://www.netlib.org/f2c/f2c.pdf" target="_blank"&gt;http://www.netlib.org/f2c/f2c.pdf&lt;/A&gt; :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Thus the C output of f2c would probably be something of a nightmare to maintain as C; it would be much more sensible to maintain the original Fortran, translating it anew each time it changed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do not undertake translation of a large body of code without careful planning and assessment.You may well spend several months, only to reach a point where you find out that the task is impossible or not worthwhile.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174860#M147069</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-04-30T16:04:00Z</dc:date>
    </item>
    <item>
      <title>I've heard anecdotes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174862#M147071</link>
      <description>&lt;P&gt;I've heard anecdotes complaining about performance from developers who ported applications from Fortran to C.&amp;nbsp; They have to work hard to get C to match the runtime performance of the Fortran code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:13:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174862#M147071</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2020-04-30T16:13:26Z</dc:date>
    </item>
    <item>
      <title>I always recommend against</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174863#M147072</link>
      <description>&lt;P&gt;I always recommend against converting a working program from one language to another. It usually ends badly. You are certain to introduce bugs or other unwanted behavior. Certainly if one was to do this, an ancient translator such as F2C is the worst possible approach.&lt;/P&gt;&lt;P&gt;Why do you want to do this? What do you think it will accomplish? It certainly won't make the code any more maintainable.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:11:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174863#M147072</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-04-30T19:11:44Z</dc:date>
    </item>
    <item>
      <title>This code is running a piece</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174864#M147073</link>
      <description>&lt;P&gt;This code is running a piece of hardware and porting FORTRAN to C is a part of renovation project for software along the hardware which is very old. I am not a big fan of code conversion myself but it has been assigned to me. I am concerned with run time errors, performance, and bad behavior after conversion and it might be also impossible after a few months of work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 19:02:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174864#M147073</guid>
      <dc:creator>heysiattalab__saeed</dc:creator>
      <dc:date>2020-05-04T19:02:32Z</dc:date>
    </item>
    <item>
      <title>What is the purpose of the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174865#M147074</link>
      <description>&lt;P&gt;What is the purpose of the language conversion? Why can't the code stay in Fortran?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 19:25:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174865#M147074</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-05-04T19:25:39Z</dc:date>
    </item>
    <item>
      <title>Quote:heysiattalab, saeed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174859#M147068</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;heysiattalab, saeed wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Steve,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. What tool would you&amp;nbsp;recommend for converting a HUGE FORTRAN code to C ? The code is years of development and I can not really rewrite in C, as it would take a lot of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put Fortran in&amp;nbsp; DLL and then use a C calling program&amp;nbsp; --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 15:59:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174859#M147068</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2020-04-30T15:59:35Z</dc:date>
    </item>
    <item>
      <title>What meccej4 is saying in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174861#M147070</link>
      <description>&lt;P&gt;What meccej4 is saying in very polite language is == this is a really bad idea and one should take it after climbing Mt Everest and considering it would be harder than that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:11:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-77-F2C/m-p/1174861#M147070</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2020-04-30T16:11:19Z</dc:date>
    </item>
  </channel>
</rss>

