OTHERS

From TNT

Jump to: navigation, search

PROGRESS INDICATOR

The command "progress done todo text;" (where done and todo are numbers) shows what proportion of todo done represents, in the form of a progress bar. The progress bar also automatically checks for user-interruptions, so that the macro routine can be interrupted. To use the progress command, it is necessary that the "report" option (REPORT command) be off. Once the task is concluded, the progress bar must be closed with progress/.

MEMORY FOR MACROS

The memory used for macros is separate from the memory used for data, trees, etc. The user variables occupy memory for the macros, and all the copying of the instructions of every level of looping (and subsequent expansion of the corresponding expressions in every cycle) is also done in a region of memory accessible to the macros. If you need to increase the number of available variables (default = 1000), or maximum loop nesting (default = 10), the command macro * L V can be used (where L = max loops, and V = max. variables). The total amount of RAM to be used by the macros can be changed with macro [ K (where K = number of kylobytes to assign to the macros, default = 100). The maximum nesting for input files can be changed with the MXPROC command. It is possible to store user variables as int's, instead of double's, case in which every cell of a user variable will occupy 32 bits (with macfloat-), instead of 64 (with macfloat=, the default); this can be used to diminish the amount of RAM that a given routine will need.

Personal tools