Examples of ZLINK

Example:

          GTM>ZLINK "test"
        

If ZLINK finds test.M or test.OBJ, it adds the routine "test" to the current image. If ZLINK does not find test.OBJ, or finds that test.OBJ is older than test.M, GT.M compiles test.M to produce a new test.OBJ, and adds the contents of the new object file to the image.

Example:

       GTM> 
       ZLINK "test.M":"/noobject/list"
       
        

This compiles the routine "test" and produces a listing but no object file. Because the example produces no object file, it does not change the current image.

Example:

          GTM>ZLINK "[smith]mode.M":"/obj=[]"
        

This compiles mode.M, in the directory [smith], to produce mode.OBJ in the current default directory, and then includes the new object file in the current image.