runtime/src/common/RTLinker.i3


Copyright (C) 1994, Digital Equipment Corp.
RTLinker defines the values initialized by the linker and startup code.

UNSAFE INTERFACE RTLinker;

TYPE
  LinkInfo = UNTRACED REF RECORD
    (* global module table *)
    n_modules  : INTEGER;
    modules    : ADDRESS; (* REF ARRAY [0..n_modules-1] OF RT0.ModulePtr *)

    (* external environment *)
    argc       : INTEGER;
    argv       : ADDRESS;
    envp       : ADDRESS;
    instance   : ADDRESS;  (* Windows "instance" handle *)

    (* initial thread bounds *)
    bottom_of_stack : ADDRESS;
    top_of_stack    : ADDRESS;
  END;

VAR info: LinkInfo;

END RTLinker.