ftnlf

Check-in [b071967c92]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Generate DLL for Fortran eXtensions.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b071967c925ac5d023f1eedaa9f7d45d78a2ae30
User & Date: vadim 2018-05-15 07:38:24
Context
2018-05-15
10:47
Compile FX.Core plugin with CMake. check-in: 44d270d7e8 user: vadim tags: trunk
07:38
Generate DLL for Fortran eXtensions. check-in: b071967c92 user: vadim tags: trunk
2018-05-14
21:06
Output array is now allocated by the called Lua function. check-in: 5575fc87bb user: vadim tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added ftnlf_fxcore_shared.f90.





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
function luaopen_fx_core(L) bind(C, name='luaopen_FX_Core') result(r)
    use LuaF
    use ftnlf_fxcore, only: ldr_fx_core
    use, intrinsic :: iso_c_binding, only: c_int, c_ptr
    type(c_ptr), value, intent(in) :: L
    integer(c_int) :: r

    r = ldr_fx_core(L)

end function luaopen_fx_core

Added intel/FX.def.









>
>
>
>
1
2
3
4
LIBRARY FX

EXPORTS
    luaopen_FX_Core

Changes to intel/clib.cmd.

1
2
3


4
call "C:\Program Files\Intel\Composer XE 2011 SP1\bin\ipsxe-comp-vars.bat" ia32 vs2010
ifort /c /QxHOST /O2 /warn ..\luaf\luaf.f90 ..\luaf\luafe.f90 ..\ftnlf_fxcore.f90 ..\ftnlf.f90 
lib /out:ftnlf.lib *.obj


del *.obj



>
>

1
2
3
4
5
6
call "C:\Program Files\Intel\Composer XE 2011 SP1\bin\ipsxe-comp-vars.bat" ia32 vs2010
ifort /c /QxHOST /O2 /warn ..\luaf\luaf.f90 ..\luaf\luafe.f90 ..\ftnlf_fxcore.f90 ..\ftnlf.f90 
lib /out:ftnlf.lib *.obj
ifort /c /QxHOST /O2 /warn ..\ftnlf_fxcore_shared.f90
ifort /dll /exe:FX.dll ftnlf_fxcore_shared.obj luaf.obj luafe.obj ftnlf_fxcore.obj lua5.1_32.lib FX.def
del *.obj