Overview of the Program Development Cycle

This section provides an overview of the steps involved in generating executable programs in GT.M.

The steps begin with your initial use of GT.M. The first two steps are part of your initial setup and will generally be performed only the first time you use GT.M. The remaining steps are those you will use regularly when generating your programs.

Each of these remaining steps can be performed either from the GT.M prompt or the shell prompt. To clearly describe the two ways to perform each step, this section is set up in the format of a table with one column illustrating the GT.M method, and one column illustrating the shell method.

Creating a GT.M Routine

1) Define environment variables (shell)

define

gtm_dist

gtmgbldir

gtmroutines

2) Prepare database (GT.M)

define Global Directory with GDE,

create database with MUPIP CREATE

-

SHELL

GT.M

3) Create/Edit routine

Create file with UNIX editor; assign .m extension

ZEDIT "routine" .m extension added by GT.M

4) Compile routine

invoke mumps routine.m

ZLINK "routine"

5) Execute routine

invoke mumps -run routine

calls from other routines invoke auto-ZLINK

Do ^routine calls from other routines invoke auto-ZLINK

6) Debug routine

edit file with UNIX editor; repeat steps 4, 5

utilize GT.M debug commands such as:

ZGOTO

ZLINK

ZMESSAGE

ZPRINT

ZSHOW

ZSTEP

ZSYSTEM

ZWRITE

repeat steps 4, 5

The table is presented as an overview of the GT.M routine generation process, and as a comparison of the available methods. More complete information on each of the steps can be found in the following parts of this manual set.

  1. Debugging routines: Chapter 4: “Operating and Debugging in Direct Mode.

  2. Defining environment variables: “Defining Environment Variables”.

  3. Defining/creating Global Directories: “Preparing the Database” and GT.M Administration and Operations Guide, "Global Directory Editor" and "MUPIP" chapters.

  4. Creating/editing routines: Creating and Editing a Source Program.

  5. Compiling routines: Compiling a Source Program”.

  6. Executing routines: Executing a Source Program”.