Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Linkage with mixed “foreign” languages

&pagelevel(4)&pagelevel

Static linking with BINDER

/START-BINDER
//START-LLM-CREATION INT-NAME=... -------------------------------------- (1)
//INCLUDE-MODULES LIB=..., ELEM=... ------------------------------------ (2)
//RESOLVE-BY-AUTOLINK LIB=userlibrary ---------------------------------- (3)
//RESOLVE-BY-AUTOLINK LIB=($.SYSLNK.CRTE,$.rts-foreignlanguage1,//
                         rts-foreignlanguage2) ----------------------- (4)
// ...
//SAVE-LLM LIB=..., ELEM=...
//END

(1)

The names of the load module and the output file are specified.

(2)

The program modules are explicitly included.

(3)

The user library is statically linked with the Autolink function.

(4)

The library $.SYSLNK.CRTE and the runtime systems rts-foreignlanguage1 and rts-foreignlangauage2 are statically linked with the Autolink function.

Dynamic linkage with DBL

/ADD-FILE-LINK LINK-NAME=BLSLIB00,FILE-NAME=userlibrary ---------------- (1)
/ADD-FILE-LINK LINK-NAME=BLSLIB01,FILE-NAME=$.SYSLNK.CRTE -------------- (1)
/ADD-FILE-LINK LINK-NAME=BLSLIB02,FILE-NAME=rts-foreignlanguage1 ------- (1)
/ADD-FILE-LINK LINK-NAME=BLSLIB03,FILE-NAME=rts-foreignlanguage2 ------- (1)
...
/START-PROGRAM *MODULE(LIB=..., ELEM=..., PROG-MODE=ANY,- 
/RUN-MODE=ADVANCED(ALT-LIB=YES,AUTO=ALT-LIB)) -------------------------- (2)

(1)

The link names BLSLIB00 to BLSLIB03 are assigned in sequence to the libraries $.SYSLNK.CRTE, rts-foreignlanguage1 and rts-foreignlanguage.During the resolution of unresolved external references, the sequence in which the individual libraries are searched corresponds to the order of their link names BLSLIB00 -> BLSLIB01 -> BLSLIB02 -> BLSLIB03.

(2)

If the specified start module is a prelinked module then this module must be linked with open external references to the CRTE, i.e. without a RESOLVE statement for the CRTE (see section “The Dynamic Binder Loader (DBL)”).