Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Managed Fortran?

dt21
ビギナー
1,284件の閲覧回数
Does the Intel Fortran v.9 compiler for .Net support compilation into managed code?
0 件の賞賛
9 返答(返信)
Steven_L_Intel1
従業員
1,284件の閲覧回数
No, it does not. But you can call Intel Fortran code from managed code via DLLs and can call managed code through the "Module Wizard" generated interfaces.

Message Edited by sblionel on 08-11-2005 04:56 PM

Intel_C_Intel
従業員
1,284件の閲覧回数
Calling Intel Fortran code from managed code via DLLs -- that's interesting.
As far as I know float point scalars and arrays are not compatible with C#, for example. I have a look at the MSDN for C# -- sharp can port only integers and something else but not reals exactly.
Stanislav Fedorov
Steven_L_Intel1
従業員
1,284件の閲覧回数
I have a sample that passes a real and an array from C# to Fortran. It isn't that hard.
Intel_C_Intel
従業員
1,284件の閲覧回数
Hi, Steve
Can you attach file with sample.
Stanislav
Steven_L_Intel1
従業員
1,284件の閲覧回数
Let's see if attachments are working again.. This sample is not "polished", but it should give you an idea of how to make this work. I have another example that uses VB.NET that is better structured - let me know if you want that.
Intel_C_Intel
従業員
1,284件の閲覧回数
Yes, attachment works!
Thanks, Steve. You may attach sample for VB.Net too. It would be interesting for me (and others, I think).
Stan (Stanislav)
Steven_L_Intel1
従業員
1,284件の閲覧回数
Here you are. This one is more fun...
Intel_C_Intel
従業員
1,284件の閲覧回数
Hello

And something else. Where it possible to read about multi-language programming via DLLs written on Fortran.

P. S. Except Help.

Stan

Message Edited by [email protected] on 08-12-2005 08:54 PM

Steven_L_Intel1
従業員
1,284件の閲覧回数
I don't know of anything other than what's in the documentation for mixed-language programming and using DLLs. We don't have documentation on managed code interaction, but that's really more appropriate for the C#, VB.NET documentation. If we had to explain how to call Fortran from every other language, we'd go crazy. We do explain what Intel Fortran expects when called and how to adjust calling conventions.

We do, of course, need some examples to get you started, and we're working on that.
返信