This release of GT.M has three modes: compiler, direct, and auto-start. Invoke these modes by using the mumps command issued with an appropriate argument.
To operate in compiler mode, invoke GT.M by entering the mumps command with a list of file names to compile. GT.M then compiles the specified programs into .o files. UNIX wildcards (* and ?) are acceptable with the file names.
To operate in direct mode, invoke GT.M by entering the mumps command with the -direct argument. GT.M then enters direct mode, where you can enter M commands interactively.
To operate in auto-start mode, invoke GT.M by entering the mumps command with the -run argument. The next argument is taken to be an M entryref, and that routine is automatically executed, by passing direct mode. Depending on the shell you are using, you may need to put the entryref in quotes.
When executing M programs, any called programs are incrementally linked. For example, the command
GTM> d ^TEST
links the object file TEST.o and executes it; if the TEST program calls other M routines, those are automatically compiled and linked.
|
|
|
Depending on the platform, the format of M object modules may not be the standard object file format, so you may not be able to use the UNIX ld utility to link all M .o files together. GT.M, however, automatically links and executes these files. |