On Tue, 21 Feb 2017 18:15:30 +0000, Ze'ev Atlas
(0000004b34e7c98a-dmarc-requ...@listserv.ua.edu) wrote about
"interfacing between PL/I and C" (in
<2145241966.1868601.1487700930...@mail.yahoo.com>):

> Hi all,I hope someone can guide me.  I have a C library that I want to
> call from PL/I.  I actually have to create an intrface module for some
> reasons.  If I code it in C using #pragma linkage (..., PLI) I have no
> prlblem communicating between the C and the PL/I, but then the C cannot
> communicate with the rest of the library which is compiled without the
> pragma (because it has to communicate with COBOL and the rest of the
> world).  I am considering doing the interface in Assembler.

Which PL/I compiler are you using?

If you are using Enterprise PL/I then you should simply be able to
declare your C functions and subroutines in PL/I with the appropriate
parameter attributes. All of C's attributes are available in PL/I and
have been for over 20 years.

If you post a couple of C prototypes here, I shall translate them into
PL/I for you and you can use them as examples. Post the most complicated
one(s), typically those with the greatest variety of parameter types.

If you are still using the old OS PL/I Optimizer, good luck -- you'll
need it.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.n...@googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to