Depending on the linkage options, the object module of the calling program is linked with the object module of the…