Re: Issue from IVF 9.0 to IVF 10.1
- From: Steve Lionel <Steve.Lionel@xxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 10:59:35 -0400
On Thu, 31 Jul 2008 10:45:48 +0200, "Jugoslav Dujic" <jdujic@xxxxxxxxx> wrote:
| May I use these features even with a non-default calling convention?
Yes (supposedly).
Roughly, the option /gen-interface works by "adding" module...end module around
the
source files in the background. /check-interface works by "adding" USE
statements
within calling routines, and then the normal interface checking rules apply. It
should be all on "source" or "preprocessor" level, i.e. be independent of the
calling convention. Steve can probably add more details.
It's not quite like that. When the compiler sees a non-CONTAINed procedure,
it generates a specially-named module with an interface for that routine. When
the compiler sees a call to a procedure that does not have an explicit
interface visible, it looks to see if one of these generated modules is
present. If so, it compares the call against the interface. This is NOT the
same as a USE, as the generated interface does not satisfy the need for an
explicit interface where required (array valued functions, etc.) Indeed, the
compiler will tell you this if you should have had an explicit interface
visible.
It's not a perfect system - in particular, order of compilation can affect it,
but it does catch a lot of problems.
Yes, it works even if you use STDCALL.
--
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH
For email address, replace "invalid" with "com"
User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
.
- References:
- Issue from IVF 9.0 to IVF 10.1
- From: Marco Ppower
- Re: Issue from IVF 9.0 to IVF 10.1
- From: Jugoslav Dujic
- Re: Issue from IVF 9.0 to IVF 10.1
- From: Marco Ppower
- Re: Issue from IVF 9.0 to IVF 10.1
- From: Jugoslav Dujic
- Issue from IVF 9.0 to IVF 10.1
- Prev by Date: Compiling SPECFUN and similar libraries
- Next by Date: Re: Compiling SPECFUN and similar libraries
- Previous by thread: Re: Issue from IVF 9.0 to IVF 10.1
- Next by thread: Re: Issue from IVF 9.0 to IVF 10.1
- Index(es):
Relevant Pages
|