\"\" \"\" \"\"
Go up to Types
Go forward to RT_Result: Execution Statistics
RISC-Linz logo

RT_Argument: Runtime Environment

class RT_Argument
{
      public:
      int proc
      int memory
      int heap
      int blocks
      int stack
      int verbose
}
arg.init()
arg.print()
      RT_Argument arg

Specification: init fills arg with information about the runtime environment of the currently executing RT++ program. print writes the contents of arg to the standard output stream.

The runtime environment is defined by a structure of the same type passed to rt_main .

The individual components have the following interpretation:

Note: The initial size of the heap is actually the smallest n with n = m * proc * blocks >= heap for some block size m. This block size m is an upper bound for the size of contiguous blocks that can be allocated in shared memory.  

Implementation: During program execution, the heap may be gradually extended in multiples of the initial heap size. This takes place, if after garbage collection

  1. less than m*proc bytes heap memory are free, or
  2. the largest contiguous memory block is not able to satisfy the allocation request that triggered the garbage collection.

Author: Wolfgang Schreiner
Last Modification: April 12, 1997