Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Can someone...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 24 Topic 8143 of 8656
Post > Topic >>

Re: Can someone know the time for a oo implemented F2003 complier

by Damian <damian@[EMAIL PROTECTED] > Apr 17, 2008 at 05:32 PM

On Apr 17, 7:32=A0am, "James Van Buskirk" <not_va...@[EMAIL PROTECTED]
> wrote:
> "Damian" <dam...@[EMAIL PROTECTED]
> wrote in message
>
>
news:d94b1b92-9b69-4684-ab81-7ffc955aa7e1@[EMAIL PROTECTED]
>
> On Apr 17, 6:24 am, angelv <txibi...@[EMAIL PROTECTED]
> wrote:
>
> > > Do you know of any more or less up-to-date table describing the
> > > implemented features of each compiler? For an application I'm
> > > writting, I would very much like to use procedure pointers, but the
> > > (little) search I've done in this group and in the PGI reference
> > > manual didn't show up anything conclusive (there was an interesting
> > > discussion about this a couple of years ago in this newsgroup, but I
> > > wonder if things have chanced for the better since then).
> > I don't think PGI sup****ts procedure pointers, but if you can get your
> > hands on a beta copy of their next release (7.2?), I believe it has
> > most of the C interoperability features of Fortran 2003. =A0In that
> > case, you might be able to use C function pointers instead. =A0I know
> > this works with gfortran 4.3.0.
>
> He might be able to use C_FUNPTRs untils he feels the need to invoke
> one of the procedures, at which time he will once again feel the
> lack of procedure pointers in gfortran 4.0. =A0It is possible to work
> around this with cray pointers, and that's what I do at the present
> time. =A0Maybe it would be a good thing to write also the procedure
> pointer code next to the cray pointer code and comment it out so
> that when the time comes it will be relatively easy to change to
> the standard syntax when gfortran catches up.
>
> --
> write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
> 6.0134700243160014d-154/),(/'x'/)); end

Oops... I should have mentioned that my use of a C function pointer
was to take the location of a Fortran procedure, pass that location to
a C++ procedure (wrapped by 'extern C') and then invoke the procedure
from C++.  In my case, that made sense because there was a pre-
existing C++ code I wanted to call a Fortran code.  In other cases,
would it work to create an ad hoc C wrapper exclusively for invoking
the fortran procedure via a C_FUNPTR?  I'm imagining the additional
coding would be pretty minimal and it would be standards-conforming
and therefore ****table. On the one hand, the Fortran code would be
limited to receiving C types. On the other hand, one of those C types
could actually be a void * pointing to whatever you want, even a
derived type.  I can post some demonstration code if so desired.

Damian
 




 24 Posts in Topic:
Can someone know the time for a oo implemented F2003 complier re
lleshuang@[EMAIL PROTECTE  2008-04-16 08:21:34 
Re: Can someone know the time for a oo implemented F2003 complie
GaryScott <garylscott@  2008-04-16 13:47:00 
Re: Can someone know the time for a oo implemented F2003 complie
nospam@[EMAIL PROTECTED]   2008-04-16 14:04:05 
Re: Can someone know the time for a oo implemented F2003 complie
"Gerry Ford" &l  2008-04-16 17:02:55 
Re: Can someone know the time for a oo implemented F2003 complie
"FX" <couder  2008-04-16 22:14:47 
Re: Can someone know the time for a oo implemented F2003 complie
nospam@[EMAIL PROTECTED]   2008-04-16 15:52:57 
Re: Can someone know the time for a oo implemented F2003 complie
"Black Barry" &  2008-06-03 21:00:50 
Re: Can someone know the time for a oo implemented F2003 complie
"Ron Ford" <  2008-06-19 20:13:20 
Re: Compiler writer questions
"Ron Ford" <  2008-05-06 18:47:03 
Re: Can someone know the time for a oo implemented F2003 complie
Damian <damian@[EMAIL   2008-04-16 17:57:57 
Re: Can someone know the time for a oo implemented F2003 complie
angelv <txibilis@[EMAI  2008-04-17 06:24:11 
Re: Can someone know the time for a oo implemented F2003 complie
Damian <damian@[EMAIL   2008-04-17 06:44:28 
Re: Can someone know the time for a oo implemented F2003 complie
"James Van Buskirk&q  2008-04-17 08:32:51 
Re: Can someone know the time for a oo implemented F2003 complie
Damian <damian@[EMAIL   2008-04-17 17:32:36 
Re: Can someone know the time for a oo implemented F2003 complie
"James Van Buskirk&q  2008-04-18 01:48:32 
Re: Can someone know the time for a oo implemented F2003 complie
nospam@[EMAIL PROTECTED]   2008-04-18 01:15:35 
Re: Can someone know the time for a oo implemented F2003 complie
"James Van Buskirk&q  2008-04-18 03:09:00 
Re: Can someone know the time for a oo implemented F2003 complie
Damian <damian@[EMAIL   2008-04-18 06:02:02 
Re: Can someone know the time for a oo implemented F2003 complie
"James Van Buskirk&q  2008-04-19 03:02:56 
Re: Can someone know the time for a oo implemented F2003 complie
Simulate <li.simula@[E  2008-04-20 00:00:20 
Re: Can someone know the time for a oo implemented F2003 complie
Simulate <li.simula@[E  2008-04-26 06:59:02 
Re: Can someone know the time for a oo implemented F2003 complie
angelv <txibilis@[EMAI  2008-04-30 15:57:33 
Re: Can someone know the time for a oo implemented F2003 complie
"James Van Buskirk&q  2008-04-30 17:29:04 
Re: Can someone know the time for a oo implemented F2003 complie
angelv <txibilis@[EMAI  2008-05-02 02:43:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:18:42 CDT 2008.