<?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 How to generate interface source without compiling? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826390#M50270</link>
    <description>The problem is that I must keep two workspaces up-to-date if I use /warn:interfaces. One for regular work, and one for manual "check" builds. The reason is that /warn:interfaces and /gen-interfaces options cause the compiler to crash with "internal compiler error" with our codebase. We have also noticed that the compiler omits incorrect code with /gen-interfaces option. We have submitted bug reports on these findings (when we could make a small reproducible example - Intel support would probably frown upon a bug report with example of million lines of code...) We are using compiler version 11.1.054&lt;BR /&gt;&lt;BR /&gt;Some of these bugs have been corrected in the latest release. However, this release has other problems and we cannot take it into use.&lt;BR /&gt;&lt;BR /&gt;For these reasons we cannot take /warn:interfaces into use in our production environment. We have occasionally used /warn:interfaces option to get a list of "interface mismatch" errors to fix. When maintaining code that is not in modules, these types of errors are inevitable. Running these kinds of "check" builds is cumbersome and the compiler omitted code must be thrown away (or made sure nobody is using it by compiling in a "sandbox" workspace).&lt;BR /&gt;&lt;BR /&gt;We would like to automate this process of checking interfaces into our regular builds. This is why I would like to generate interface code without compiling (as the compiling messes things up).&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks for the answer. Now I know that I need to look for another solution. Meanwhile we'll keep reporting bugs with /warn:interfaces and /gen-interfaces and hope that that they will get fixed in future releases.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;-Heikki&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 06 May 2010 08:11:14 GMT</pubDate>
    <dc:creator>hs-napa</dc:creator>
    <dc:date>2010-05-06T08:11:14Z</dc:date>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826385#M50265</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to generate interfaces for some old F77 code for better compile 
time checking. I did not find a way to use the /gen-interfaces:source 
option without generating the .mod and .obj files.&lt;BR /&gt;&lt;BR /&gt;I suppose there is a simple solution that I just could not find from the compiler documentation and experimenting with the options.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;-Heikki</description>
      <pubDate>Wed, 05 May 2010 07:57:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826385#M50265</guid>
      <dc:creator>hs-napa</dc:creator>
      <dc:date>2010-05-05T07:57:10Z</dc:date>
    </item>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826386#M50266</link>
      <description>Ifpossible you could put the F77 code in a module which the calling routine(s) would USE.&lt;BR /&gt;Interface checking would then be provided automatically.&lt;BR /&gt;&lt;BR /&gt;Les&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2010 08:09:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826386#M50266</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2010-05-05T08:09:22Z</dc:date>
    </item>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826387#M50267</link>
      <description>Yes, it is possible, but inpractical in this case. There is more than million lines of fortran code in more than 12000 files (basically one subroutine/function per file). It's a lot easier to automate the generating of interfaces than moving all that code into modules.</description>
      <pubDate>Wed, 05 May 2010 08:59:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826387#M50267</guid>
      <dc:creator>hs-napa</dc:creator>
      <dc:date>2010-05-05T08:59:18Z</dc:date>
    </item>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826388#M50268</link>
      <description>Ah, I understand.&lt;BR /&gt;Unless there is a 3rd-partypiece of software that will do it youwill need to write a script to do the job.&lt;BR /&gt;&lt;BR /&gt;I did something along those lines a few years ago, using perl - basically it did the following :&lt;BR /&gt; read each fortran source file&lt;BR /&gt; parse the subroutine/function statement getting a list of arguments and their type&lt;BR /&gt; construct an interface block for this routine&lt;BR /&gt; write it to a &lt;ROUTINE&gt;.ins file&lt;BR /&gt;&lt;BR /&gt;then go through each source file again&lt;BR /&gt;make alist of subroutines/functions used by this code&lt;BR /&gt;insert an "include" statement for the&lt;ROUTINE&gt;.ins interface block file written earlier foreach called routine&lt;BR /&gt;&lt;BR /&gt;It was a laborious process and not without problems but I got most of the interface mismatches this way in the end.&lt;BR /&gt;&lt;BR /&gt;You may be better off using modules - we certainly are :-)&lt;BR /&gt;&lt;BR /&gt;Les&lt;/ROUTINE&gt;&lt;/ROUTINE&gt;</description>
      <pubDate>Wed, 05 May 2010 10:45:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826388#M50268</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2010-05-05T10:45:07Z</dc:date>
    </item>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826389#M50269</link>
      <description>Why not just compile normally (with /warn:interface) and then throw away the .obj and .mod files? I don't know of an option to just generate the .f90 files.</description>
      <pubDate>Wed, 05 May 2010 13:20:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826389#M50269</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-05-05T13:20:30Z</dc:date>
    </item>
    <item>
      <title>How to generate interface source without compiling?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826390#M50270</link>
      <description>The problem is that I must keep two workspaces up-to-date if I use /warn:interfaces. One for regular work, and one for manual "check" builds. The reason is that /warn:interfaces and /gen-interfaces options cause the compiler to crash with "internal compiler error" with our codebase. We have also noticed that the compiler omits incorrect code with /gen-interfaces option. We have submitted bug reports on these findings (when we could make a small reproducible example - Intel support would probably frown upon a bug report with example of million lines of code...) We are using compiler version 11.1.054&lt;BR /&gt;&lt;BR /&gt;Some of these bugs have been corrected in the latest release. However, this release has other problems and we cannot take it into use.&lt;BR /&gt;&lt;BR /&gt;For these reasons we cannot take /warn:interfaces into use in our production environment. We have occasionally used /warn:interfaces option to get a list of "interface mismatch" errors to fix. When maintaining code that is not in modules, these types of errors are inevitable. Running these kinds of "check" builds is cumbersome and the compiler omitted code must be thrown away (or made sure nobody is using it by compiling in a "sandbox" workspace).&lt;BR /&gt;&lt;BR /&gt;We would like to automate this process of checking interfaces into our regular builds. This is why I would like to generate interface code without compiling (as the compiling messes things up).&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks for the answer. Now I know that I need to look for another solution. Meanwhile we'll keep reporting bugs with /warn:interfaces and /gen-interfaces and hope that that they will get fixed in future releases.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;-Heikki&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2010 08:11:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-generate-interface-source-without-compiling/m-p/826390#M50270</guid>
      <dc:creator>hs-napa</dc:creator>
      <dc:date>2010-05-06T08:11:14Z</dc:date>
    </item>
  </channel>
</rss>

