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

Managed Fortran?

dt21
Beginner
1,067 Views
Does the Intel Fortran v.9 compiler for .Net support compilation into managed code?
0 Kudos
9 Replies
Steven_L_Intel1
Employee
1,067 Views
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

0 Kudos
Intel_C_Intel
Employee
1,067 Views
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
0 Kudos
Steven_L_Intel1
Employee
1,067 Views
I have a sample that passes a real and an array from C# to Fortran. It isn't that hard.
0 Kudos
Intel_C_Intel
Employee
1,067 Views
Hi, Steve
Can you attach file with sample.
Stanislav
0 Kudos
Steven_L_Intel1
Employee
1,067 Views
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.
0 Kudos
Intel_C_Intel
Employee
1,067 Views
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)
0 Kudos
Steven_L_Intel1
Employee
1,067 Views
Here you are. This one is more fun...
0 Kudos
Intel_C_Intel
Employee
1,067 Views
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 fedorovstanislav@mail.ru on 08-12-2005 08:54 PM

0 Kudos
Steven_L_Intel1
Employee
1,067 Views
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.
0 Kudos
Reply