[Info-vax] message communication (VMS <> PC)

Arne Vajhøj arne at vajhoej.dk
Fri Jan 22 22:31:42 EST 2010


On 22-01-2010 08:49, Bob Koehler wrote:
> In article<4b57add4$0$275$14726298 at news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?=<arne at vajhoej.dk>  writes:
>> You can try and call the standard socket functions
>> directly from Fortran.
>
>     We actually did that on a system where the programmer couldn't figure
>     out the $QIO documentation for UCX.  I showed him how to translate
>     the C header file info into VAX Fortran structures (ANSI Fortran
>     didn't yet have structures back then), and pass arguements by value
>     and such.  We did have to code some calls to socket routine X as
>     DECC$X.
>
>     We found a memory leak in the C RTL socket routines and got DEC to
>     fix it, even though our sample code was Fortran.  Cross-language
>     calling is, of course, a documented and supported feature of VMS'
>     native compilers.

It is certainly possible.

But if the C compiler is available to write a C wrapper,
then I believe writing that wrapper is faster than
translating the in_addr stuff to Fortran.

Arne




More information about the Info-vax mailing list