Previous Topic Next topic Print topic


Using the Linker

When your application is working you might want to make it independent of the Studio Enterprise Edition for UNIX system so you can distribute it for use on other binary-compatible machines. To do this you use the UNIX system linker, which can be accessed from the main menu.

Notes:

If you have left the Development Environment, load it by using the sde command as before. To link a tictac:

  1. Press F6=generate.

    The Generator menu appears as before. This time you use the Generator to produce an .o file instead of a .gnt file.

  2. If you closed the Development Environment and have just re-entered it, type:
    tictac

    but do not press Enter yet. If you did not close the Studio Enterprise Edition for UNIX Development Environment, the word tictac is already there.

  3. Press F6=gnt/object so that the word "object" appears on the status line.
  4. Press Enter.

    The program is generated, but this time an .o file is produced.

  5. Press F8=link.

    A menu appears enabling you to specify the program to be linked and giving you access to various functions and options useful at this point. Because you have just been working with tictac its name is already set there, with the extension .o assumed; and the default settings of the menu are what we want. So you do not enter anything on this menu.

  6. Press Enter.

    The command line that Studio Enterprise Edition for UNIX will pass to the system linker is displayed, and then linking begins. A list headed "Entry points defined in module: tictac.o" is displayed, after which there might be a pause before the linking finishes and you are returned to the main menu.

  7. Now exit from Studio Enterprise Edition for UNIX to the operating system, as above.
Previous Topic Next topic Print topic