Class SysInfo

java.lang.Object
svm.env.SysInfo

public abstract class SysInfo extends Object

Information from/to the user of the environment

The routines correspond to the similarly named SIMULA Standard functions.

Link to GitHub: Source File.

Author:
Simula Standard, S-Port: The Environment Interface, Øystein Myhre Andersen
  • Constructor Details

    • SysInfo

      public SysInfo()
      Default Constructor
  • Method Details

    • getIntInfo

      public static void getIntInfo()

      Get integer valued information from the environment

      Visible sysroutine("GINTIN") GINTIN;
      import range(0:127) index; export integer result  end;
      
      Runtime Stack
         ..., index →
         ..., result
      

      The parameter index is an integer specifying what information is requested. The result will be an integer whose interpretation gives the specified information. The result, which is pushed onto the Runtime stack, is given for each value of index as follows:

      Index: Interpretation:
      
        19   Should the symbolic debugger SIMOB be entered prior to the execution of the
             program, and at program termination? An answer greater than zero will give this effect.
      
        24   How many work areas may be requested (see chapter 5)?
      
        33   Result: 0 - no, this is not an interactive execution
                     1 - yes, this is an interactive execution
      
    • getSizeInfo

      public static void getSizeInfo()

      Get size valued information from the environment

      Visible sysroutine ("SIZEIN") SIZEIN;
      import range(0:127) index; range(0:255) warea;
      export size result  end;
      
      Runtime Stack
         ..., index, warea →
         ..., result
      
      index: Specifies the information requested (se below).
      warea: Identifies the work area in question.
      result: The wanted SIZE, according to the value of Index:
      
      Index Result
      
        1   The minimum size of this work area.
        2   The extension/contraction step size.
        3   The minimum gap left in this work area after a garbage collection,
            if the area is the current work area.
      
    • giveIntInfo

      public static void giveIntInfo()

      Information to the environment

      The routine give intinfo is defined to submit information from the front-end compiler or the runtime system to the environment. This information is gathered from the source input under

      Visible sysroutine("GVIINF")  GVIINF;
      import range(0:127) index; integer inform  end;
      
      Runtime Stack
         ..., index, inform →
         ...
      

      The parameter index is an integer that specifies what information follows. Info will be an integer carrying the following interpretation:

      Index Interpretation
      
        6   Garbage collection information.
               Info=0 signals the start of a garbage collection,
               Info=1 signals termination of g.c. (see 5.2).