Dynamic Memory Routines

The next six routines, and the C$MEMCPY routine, allow you to create and manage dynamically allocated memory. This can be useful when you have to manipulate a number of items, but don't know how many items beforehand. Dynamic memory is allocated using the same mechanism that the runtime uses to allocate memory to programs. In the debugger, you can see how much dynamic memory is currently allocated to the program by running the program in the debugger. To display all memory allocated to the program select the Memory Usage menu item from the File menu (or press U on the keyboard). The amount of dynamic memory is the number that appears in the fifth position of the value displayed (see Debugger Commands in ACUCOBOL-GT User's Guide).