Memory-mapped execution sequence

When you run a memory-mapped member for the first time, OpenEdge loads and executes the r-code as follows:

  1. Opens the procedure library, if not already open, and memory-maps the library in shared memory.
  2. Reads the member and creates an r-code directory entry for the member.
  3. Registers each required r-code segment in the execution environment as follows:
    1. Adds an r-code segment entry to the segment descriptor table that references the segment in shared memory
    2. Inserts a segment descriptor reference in the r-code directory entry for the member
  4. Once the required r-code segments are registered in the execution environment, the interpreter begins executing the r-code at the start of the first main action code segment and accesses the remaining segments directly from shared memory as required.