4 ocamlrun \- The Objective Caml bytecode interpreter
11 .I filename argument ...
16 command executes bytecode files produced by the
21 The first non-option argument is taken to be the name of the file
22 containing the executable bytecode. (That file is searched in the
23 executable path as well as in the current directory.) The remaining
24 arguments are passed to the Objective Caml program, in the string array
25 Sys.argv. Element 0 of this array is the name of the
26 bytecode executable file; elements 1 to
28 are the remaining arguments.
30 In most cases, the bytecode
31 executable files produced by the
33 command are self-executable,
34 and manage to launch the
36 command on themselves automatically.
40 The following command-line option is recognized by
45 When set, the memory manager prints verbose messages on standard error
46 to signal garbage collections and heap extensions.
48 .SH ENVIRONMENT VARIABLES
50 The following environment variable are also consulted:
54 Set the garbage collection parameters.
59 will be used instead.)
60 This variable must be a sequence of parameter specifications.
61 A parameter specification is an option letter followed by an =
62 sign, a decimal number, and an optional multiplier. There are seven
66 Print a stack backtrace in case of an uncaught exception.
68 .BR s \ (minor_heap_size)
69 Size of the minor heap.
71 .BR i \ (major_heap_increment)
72 Minimum size increment for the major heap.
74 .BR o \ (space_overhead)
75 The major GC speed setting.
77 .BR O \ (max_overhead)
78 The heap compaction trigger setting.
81 The limit (in words) of the stack size.
84 The initial size of the major heap (in words).
87 What GC messages to print to stderr. This is a sum of values selected
91 Start of major GC cycle.
94 Minor collection and major GC slice.
97 Growing and shrinking of the heap.
100 Resizing of stacks and memory manager tables.
106 Change of GC parameters.
109 Computation of major GC slice size.
112 Calling of finalisation function.
123 , for multiplication by 2^10, 2^20, and 2^30 respectively.
124 For example, on a 32-bit machine under bash, the command
125 .B export OCAMLRUNPARAM='s=256k,v=1'
128 to set its initial minor heap size to 1 megabyte and to print
129 a message at the start of each major GC cycle.
133 List of directories searched to find the bytecode executable file.
138 .I The Objective Caml user's manual,
139 chapter "Runtime system".