Previous Topic Next topic Print topic


Generating Callable Shared Objects

You can use the CSO option on the main menu to create a callable shared object file with the extension .so; this contains native machine code, which executes faster than intermediate code. Callable shared objects can be run using the Run option as described in the section Running below. Unlike .int and .gnt files, however, callable shared objects can contain more than one COBOL program and can also contain other language programs, such as C and C++. Callable shared objects can also be linked with third party object files or shared libraries. This behavior is similar to system executables and shared libraries but differs from .int files and .gnt files, where each file corresponds to a single COBOL program.

To create tictac.so:

  1. Create the object file tictac.o as shown in the section Using the Linker.
  2. Press F7=CSO on the main menu.

    A menu appears enabling you to specify the program to compile. Because you have just been working with tictac, its name is already set there as default; and the default settings of the menu are what we want. So you do not type anything on this menu.

  3. Press Enter

    The system displays a banner identifying the Generator and some directives that Studio Enterprise Edition for UNIX has automatically set. The function finishes after just a few seconds.

You are then returned to the main menu .

Previous Topic Next topic Print topic