<?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 Re: Mixed Language DLL in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794583#M34473</link>
    <description>What should the DEF file look like? Should it export WEP and/or the entry points that are already exported by the DLLEXPORT directives in my Fortran routines?&lt;BR /&gt;&lt;BR /&gt;I tried putting the following .DEF file in the same folder as my source files, but according to DUMPBIN it didn't add the export (MyAsmFunction) that I specified:&lt;BR /&gt;&lt;BR /&gt;LIBRARY		MyDll&lt;BR /&gt;EXETYPE		WINDOWS&lt;BR /&gt;CODE		PRELOAD MOVEABLE DISCARDABLE&lt;BR /&gt;DATA		PRELOAD MOVEABLE SINGLE&lt;BR /&gt;SEGMENTS CODE2	PRELOAD	FIXED&lt;BR /&gt;EXPORTS		MyAsmFunction</description>
    <pubDate>Thu, 31 Jul 2003 23:22:43 GMT</pubDate>
    <dc:creator>hweisberg</dc:creator>
    <dc:date>2003-07-31T23:22:43Z</dc:date>
    <item>
      <title>Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794578#M34468</link>
      <description>I am using CVF to create a DLL from mixed Fortran and Assembly files. &lt;BR /&gt;&lt;BR /&gt;I export the entry point to a Fortran routine by using the DLLEXPORT directive:&lt;BR /&gt;&lt;BR /&gt;subroutine MyFortranRoutine(x, y)&lt;BR /&gt;!DEC$ ATTRIBUTES DLLEXPORT::MYFORTRANROUTINE&lt;BR /&gt;...&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;How do I export the entry point to an assembly routine?&lt;BR /&gt;&lt;BR /&gt;I don't want to just wrap the assembly routine in a Fortran wrapper function which I then export.&lt;BR /&gt;&lt;BR /&gt;The assembly routine looks like this:&lt;BR /&gt;&lt;BR /&gt;MYASSEMBLYROUTINE PROC STDCALL, x:SDWORD, y:SDWORD extrn _z@12:proc&lt;BR /&gt;...&lt;BR /&gt;MyAssemblyRoutine ENDP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jul 2003 23:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794578#M34468</guid>
      <dc:creator>hweisberg</dc:creator>
      <dc:date>2003-07-28T23:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794579#M34469</link>
      <description>I don't know if MASM has a "DLLEXPORT" directive/pragma/whatever.  Perhaps one uses a .DEF file for this?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 29 Jul 2003 00:21:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794579#M34469</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-07-29T00:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794580#M34470</link>
      <description>Steve is on to something when he suggests using a .DEF. See&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_10.htm" target="_blank"&gt;http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_10.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;BTW kb Q228545 has a patch 6.14 for masm.&lt;BR /&gt;&lt;BR /&gt;Please post back on your success and any uncovered pitfalls.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Gerry T.</description>
      <pubDate>Tue, 29 Jul 2003 19:56:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794580#M34470</guid>
      <dc:creator>gfthomas8</dc:creator>
      <dc:date>2003-07-29T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794581#M34471</link>
      <description>OK, there is a MASM611SAMPLESWINDLL folder that shows how to make an all-MASM DLL. &lt;BR /&gt;&lt;BR /&gt;Not being extreme MASM experts, we are going to have a hard time using this to devine the one or two lines of code that perhaps would solve our problem within CVF, where we just want to add one entry point.&lt;BR /&gt;&lt;BR /&gt;The development environment doesn't seem to have a place for adding .DEF files. There seems to be a .EXP file already that defines exports.&lt;BR /&gt;&lt;BR /&gt;Anyu experts out there who know the answer?</description>
      <pubDate>Wed, 30 Jul 2003 01:07:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794581#M34471</guid>
      <dc:creator>hweisberg</dc:creator>
      <dc:date>2003-07-30T01:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794582#M34472</link>
      <description>Just add the .DEF as if it was a source file.  It will get picked up automatically by the linker. I have done this (just not with MASM.)&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 30 Jul 2003 02:36:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794582#M34472</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-07-30T02:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794583#M34473</link>
      <description>What should the DEF file look like? Should it export WEP and/or the entry points that are already exported by the DLLEXPORT directives in my Fortran routines?&lt;BR /&gt;&lt;BR /&gt;I tried putting the following .DEF file in the same folder as my source files, but according to DUMPBIN it didn't add the export (MyAsmFunction) that I specified:&lt;BR /&gt;&lt;BR /&gt;LIBRARY		MyDll&lt;BR /&gt;EXETYPE		WINDOWS&lt;BR /&gt;CODE		PRELOAD MOVEABLE DISCARDABLE&lt;BR /&gt;DATA		PRELOAD MOVEABLE SINGLE&lt;BR /&gt;SEGMENTS CODE2	PRELOAD	FIXED&lt;BR /&gt;EXPORTS		MyAsmFunction</description>
      <pubDate>Thu, 31 Jul 2003 23:22:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794583#M34473</guid>
      <dc:creator>hweisberg</dc:creator>
      <dc:date>2003-07-31T23:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794584#M34474</link>
      <description>Simply placing the .DEF file in the source directory is insufficient - you have to be sure that it is an input to the linker, similar to a .OBJ.  That's what adding it as a project source would do.&lt;BR /&gt;&lt;BR /&gt;I've used .DEF files a little.  I think the EXPORTS keyword is supposed to be on a line by itself, then followed by lines naming the exports.  I also think that proper case for the symbol name is important.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 01 Aug 2003 00:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794584#M34474</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-08-01T00:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794585#M34475</link>
      <description>I did a search on Microsoft's site for Q228545 and got no results. Is that number correct?&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Tue, 05 Aug 2003 20:48:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794585#M34475</guid>
      <dc:creator>durisinm</dc:creator>
      <dc:date>2003-08-05T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Language DLL</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794586#M34476</link>
      <description>Actually, it's &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;q228454"&gt;228454&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 06 Aug 2003 15:16:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mixed-Language-DLL/m-p/794586#M34476</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-08-06T15:16:25Z</dc:date>
    </item>
  </channel>
</rss>

