From ArachneWiki

Jump to: navigation, search

The module RunTime creates an appropriate run-time environment for executable modules. It is typically used by calling the function RunTime() at the beginning of a main function. It does the following:

  1. Decouples C-style stdio from C++-style cin, cout, cerr.
  2. Disables core dumps.
  3. Sets up a handler for memory allocation failures.
  4. Checks that enough stack space has been allocated (via limit stacksize 100000).
  5. Sets up a handler for manual interrupts (Ctrl-C).
  6. Sets up automatic stack traces (with MemTracker) in the event of segmentation fault.
  7. Locks the currently running binary executable.
Personal tools