Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
COBOL dynamically calling non-Language Environment conforming assembler with C statically linked z/OS Language Environment Writing Interlanguage Communication Applications SA38-0684-00 |
|
COBOL can dynamically call non-Language Environment conforming assembler which then calls a statically linked C routine provided the C routine is non-reentrant or naturally reentrant (no writable static). The C routine must have the #pragma linkage(...,COBOL) directive coded. Note: If C has not yet been initialized, calling a reentrant C routine
will work. The C routine must have the #pragma linkage(...,COBOL)
directive coded. Due to the difficulty of the user ensuring that C
has not yet been initialized, IBM® recommends
the use of one of the methods described in this section.
A preferable method would be to have COBOL dynamically call the C routine directly. You can also have COBOL dynamically call Language Environment® conforming assembler, which then calls a statically linked C routine. In these cases, there would be no reentrancy restrictions. |
Copyright IBM Corporation 1990, 2014
|