<?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 wrong entry in calling a DLL in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106257#M128039</link>
    <description>&lt;DIV&gt;I have recompiled (with IVF16, 64bits) a dll unchanged from about 2 years previously generated with IVF15 32 bits.&lt;BR /&gt;
	The export functions are entry points of the 'main subroutine' as follows:&lt;BR /&gt;
	=======================================================&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBROUTINE&amp;nbsp; XSTUO_INIT(IHELP,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	!&lt;BR /&gt;
	!...* export / import statements * ....&lt;BR /&gt;
	!&lt;BR /&gt;
	! Expose this subroutine to users of this DLL&lt;BR /&gt;
	!&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTUO_INIT&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTPRT_EXEC&lt;/DIV&gt;

&lt;DIV&gt;!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SNO&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SLIST&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SPROP&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_QTPV&lt;/DIV&gt;

&lt;DIV&gt;!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPNO&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPKEYS&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPNAMES&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_MW&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SDSIZE&lt;BR /&gt;
	!&lt;BR /&gt;
	!&lt;BR /&gt;
	!&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTRY&amp;nbsp;&amp;nbsp; XSTPRT_EXEC(IVNAME,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;/DIV&gt;

&lt;DIV&gt;. . . . . . . .&lt;BR /&gt;
	. . . . . . . .&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTRY&amp;nbsp;&amp;nbsp; XSTGET_QTPV(IVNAME,IOLEN,IOVALUE,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;/DIV&gt;

&lt;DIV&gt;==================================================================================&lt;/DIV&gt;

&lt;DIV&gt;In the first test an exception was found. The DLL is called by a C++ application now in 64 bits mode.&lt;BR /&gt;
	By following the dll in debugging execution using VS one can see surprisingly that the initial call to&lt;BR /&gt;
	XSTUO_INIT(IHELP,IERR) enters the dll at&amp;nbsp; XSTGET_QTPV which is the last entry in the source code.&lt;BR /&gt;
	Attached is the image of the VS debugging execution.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Sun, 14 May 2017 13:47:08 GMT</pubDate>
    <dc:creator>LRaim</dc:creator>
    <dc:date>2017-05-14T13:47:08Z</dc:date>
    <item>
      <title>wrong entry in calling a DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106257#M128039</link>
      <description>&lt;DIV&gt;I have recompiled (with IVF16, 64bits) a dll unchanged from about 2 years previously generated with IVF15 32 bits.&lt;BR /&gt;
	The export functions are entry points of the 'main subroutine' as follows:&lt;BR /&gt;
	=======================================================&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBROUTINE&amp;nbsp; XSTUO_INIT(IHELP,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	. . . . . .&lt;BR /&gt;
	!&lt;BR /&gt;
	!...* export / import statements * ....&lt;BR /&gt;
	!&lt;BR /&gt;
	! Expose this subroutine to users of this DLL&lt;BR /&gt;
	!&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTUO_INIT&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTPRT_EXEC&lt;/DIV&gt;

&lt;DIV&gt;!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SNO&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SLIST&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SPROP&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_QTPV&lt;/DIV&gt;

&lt;DIV&gt;!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPNO&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPKEYS&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_CPNAMES&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_MW&lt;BR /&gt;
	!DEC$&amp;nbsp; ATTRIBUTES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLLEXPORT ::&amp;nbsp; XSTGET_SDSIZE&lt;BR /&gt;
	!&lt;BR /&gt;
	!&lt;BR /&gt;
	!&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTRY&amp;nbsp;&amp;nbsp; XSTPRT_EXEC(IVNAME,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;/DIV&gt;

&lt;DIV&gt;. . . . . . . .&lt;BR /&gt;
	. . . . . . . .&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTRY&amp;nbsp;&amp;nbsp; XSTGET_QTPV(IVNAME,IOLEN,IOVALUE,IERR)&lt;BR /&gt;
	!+... ******************************************************************&lt;/DIV&gt;

&lt;DIV&gt;==================================================================================&lt;/DIV&gt;

&lt;DIV&gt;In the first test an exception was found. The DLL is called by a C++ application now in 64 bits mode.&lt;BR /&gt;
	By following the dll in debugging execution using VS one can see surprisingly that the initial call to&lt;BR /&gt;
	XSTUO_INIT(IHELP,IERR) enters the dll at&amp;nbsp; XSTGET_QTPV which is the last entry in the source code.&lt;BR /&gt;
	Attached is the image of the VS debugging execution.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 May 2017 13:47:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106257#M128039</guid>
      <dc:creator>LRaim</dc:creator>
      <dc:date>2017-05-14T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Maybe.  There might also just</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106258#M128040</link>
      <description>&lt;P&gt;Maybe.&amp;nbsp; There might also just be some confusion between the compiler and debugger around how the instruction pointer maps to line numbers.&amp;nbsp; I'd trace the call from the C++ through to the Fortran in disassembled form to just confirm things first.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 20:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106258#M128040</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2017-05-14T20:08:00Z</dc:date>
    </item>
    <item>
      <title>This is a compiler bug not</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106259#M128041</link>
      <description>&lt;P&gt;This is a compiler bug not present in previous version.&lt;BR /&gt;
	​By changing each entry into a separate subroutine the&amp;nbsp;problem disappear.&lt;BR /&gt;
	​It seems that regression tests on new versions of the compiler &amp;nbsp;are not well performed.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 10:27:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106259#M128041</guid>
      <dc:creator>LRaim</dc:creator>
      <dc:date>2017-05-15T10:27:11Z</dc:date>
    </item>
    <item>
      <title>ENTRY - Status: Declared</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106260#M128042</link>
      <description>&lt;P&gt;&lt;STRONG style="color: rgb(34, 34, 34); font-family: Verdana, &amp;quot;Bitstream Vera Sans&amp;quot;, sans-serif; font-size: 14px; text-align: justify;"&gt;ENTRY - Status:&lt;/STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Verdana, &amp;quot;Bitstream Vera Sans&amp;quot;, sans-serif; font-size: 14px; text-align: justify;"&gt;&amp;nbsp;Declared obsolescent in Fortran 2008.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 10:48:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106260#M128042</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-05-15T10:48:16Z</dc:date>
    </item>
    <item>
      <title>I am waiting for comments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106261#M128043</link>
      <description>&lt;P&gt;I am waiting for&amp;nbsp;comments from Intel people.&amp;nbsp;&lt;BR /&gt;
	Have I to post the problem to premier support ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:33:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106261#M128043</guid>
      <dc:creator>LRaim</dc:creator>
      <dc:date>2017-05-16T14:33:21Z</dc:date>
    </item>
    <item>
      <title>I had checked w/Development</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106262#M128044</link>
      <description>&lt;P&gt;I had checked w/Development and while what Andrew notes is true and that was included in our 16.0 User's guide, there was no change in the treatment of ENTRY, therefore, the change per the Fortran 2008 Standard is not a factor so we need to investigate this further.&lt;/P&gt;

&lt;P&gt;Please do provide us with a complete reproducer and report this via our Online Service Center : &lt;A href="http://www.intel.com/supporttickets" target="_blank"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://www.intel.com/supporttickets" target="_blank"&gt;http://www.intel.com/supporttickets&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:42:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/wrong-entry-in-calling-a-DLL/m-p/1106262#M128044</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2017-05-16T14:42:52Z</dc:date>
    </item>
  </channel>
</rss>

