OS Manuals

/usr/bin/ocamlrun

The core OCaml system: compilers, runtime system, base libraries

From ocaml 5.5.2-r0 (os), captured 2026-11-05 by running ocamlrun --help (exit 0). permalink

Usage: ocamlrun [<options>] [--] <executable> [<command-line>]
Options are:
  -b  Set runtime parameter b (detailed exception backtraces)
  -config  Print configuration values and exit
  -events  Trace debug events in bytecode interpreter (ignored
      if not ocamlrund)
  -I <dir>  Add <dir> to the list of DLL search directories
  -m  Print the magic number of <executable> and exit
  -M  Print the magic number expected by this runtime and exit
  -p  Print the names of the primitives known to this runtime
  -t  Trace the execution of the bytecode interpreter (specify multiple
      times to increase verbosity)
  -v  Set runtime parameter v=61 (GC event information)
  -version  Print version string and exit
  -vnum  Print short version number and exit
  -help  Display this list of options
  --help  Display this list of options
Options (13)
OptionDescriptionSource
-bWhen the program aborts due to an uncaught exception, print a detailed "back trace" of the execution, showing where the exception was raised and which function calls were outstanding at this point.help + man
-configPrint configuration values and exithelp
-eventsTrace debug events in bytecode interpreter (ignored if not ocamlrund)help
-I dirSearch the directory dir for dynamically-loaded libraries, in addition to the standard search path.help + man
-m filePrint the magic number of the bytecode executable file and exit.help + man
-MPrint the magic number expected for bytecode executables by this version of the runtime and exit.help + man
-pPrint the names of the primitives known to this version of ocamlrun(1) and exit.help + man
-tTrace the execution of the bytecode interpreter (specify multiple times to increase verbosity)help + man
-vDirect the memory manager to print verbose messages on standard error.help + man
-versionPrint version string and exit.help + man
-vnumPrint short version number and exit.help + man
-helpDisplay this list of optionshelp
--helpDisplay this list of optionshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.