Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

ISO C BINDING?

joe_krahn
Beginner
844 Views

Is there any [disclosable] information on the availability if ISO C binding features in Intel Fortran? The existing support for the related !DEC$ directives should be quite helpful.

Also, the standard does not mention alternative calling conventions. Do you know how Intel plans to handle STDCALL versus CDECL? Perhaps it is likely that Win32 programmers will have to keep using the !DEC$ directives?

0 Kudos
4 Replies
Steven_L_Intel1
Employee
844 Views
Can't comment - sorry. We know it's a popular request.

Given that ISO_C_BINDING is a C binding, it would follow C defaults and directives would still be needed if those defaults were inappropriate.
0 Kudos
Stefanos_K_
Beginner
844 Views

Is there any more information on this topic? If not, why is this a secret?

I am particularly interested in using C_INT128_T. I have version 13.0.1.117 Build 20121010 and this is not available, whereas it is available in gfortran. Is this going to be included any time soon? Is there any alternative that can be used to define a 128-bit integer?

0 Kudos
TimP
Honored Contributor III
844 Views

I suppose ifort would not have c_int128_t unless it were adopted by icc for all supported platforms (tough, given the built-in incompatibility between gcc and MSVC).  In Icc, you need _m128 data types for such purposes (possibly in a union with an array of interoperabile type), and it's lacking in portability.

0 Kudos
Steven_L_Intel1
Employee
844 Views

This thread is from 2006. SInce then we did implement all of the C interoperability features from Fortran 2003 and it is fully documented. We chose not to integrate STDCALL into this, though.

Intel Fortran does not have a 128-bit integer kind. We know gfortran has one.

0 Kudos
Reply