Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jocamlrun(1) [debian man page]

JOCAMLRUN(1)						      General Commands Manual						      JOCAMLRUN(1)

NAME
jocamlrun - The JoCaml bytecode interpreter SYNOPSIS
jocamlrun [ -v ] filename argument ... DESCRIPTION
The jocamlrun(1) command executes bytecode files produced by the linking phase of the jocamlc(1) command. The first non-option argument is taken to be the name of the file containing the executable bytecode. (That file is searched in the exe- cutable path as well as in the current directory.) The remaining arguments are passed to the Objective Caml program, in the string array Sys.argv. Element 0 of this array is the name of the bytecode executable file; elements 1 to n are the remaining arguments. In most cases, the bytecode executable files produced by the jocamlc(1) command are self-executable, and manage to launch the jocamlrun(1) command on themselves automatically. OPTIONS
The following command-line option is recognized by jocamlrun(1). -v When set, the memory manager prints verbose messages on standard error to signal garbage collections and heap extensions. ENVIRONMENT VARIABLES
The following environment variable are also consulted: OCAMLRUNPARAM Set the garbage collection parameters. (If OCAMLRUNPARAM is not set, CAMLRUNPARAM will be used instead.) This variable must be a sequence of parameter specifications. A parameter specification is an option letter followed by an = sign, a decimal number, and an optional multiplier. There are seven options: b (backtrace) Print a stack backtrace in case of an uncaught exception. s (minor_heap_size) Size of the minor heap. i (major_heap_increment) Minimum size increment for the major heap. o (space_overhead) The major GC speed setting. O (max_overhead) The heap compaction trigger setting. l (stack_limit) The limit (in words) of the stack size. h The initial size of the major heap (in words). v (verbose) What GC messages to print to stderr. This is a sum of values selected from the following: 1 Start of major GC cycle. 2 Minor collection and major GC slice. 4 Growing and shrinking of the heap. 8 Resizing of stacks and memory manager tables. 16 Heap compaction. 32 Change of GC parameters. 64 Computation of major GC slice size. 128 Calling of finalisation function. 256 Startup messages. The multiplier is k , M , or G , for multiplication by 2^10, 2^20, and 2^30 respectively. For example, on a 32-bit machine under bash, the command export OCAMLRUNPARAM='s=256k,v=1' tells a subsequent jocamlrun to set its initial minor heap size to 1 megabyte and to print a message at the start of each major GC cycle. PATH List of directories searched to find the bytecode executable file. SEE ALSO
jocamlc(1). The Objective Caml user's manual, chapter "Runtime system". JOCAMLRUN(1)

Check Out this Related Man Page

OCAMLDEBUG(1)						      General Commands Manual						     OCAMLDEBUG(1)

NAME
ocamldebug - the Objective Caml source-level replay debugger. SYNOPSIS
ocamldebug [ options ] program [ arguments ] DESCRIPTION
ocamldebug is the Objective Caml source-level replay debugger. Before the debugger can be used, the program must be compiled and linked with the -g option: all .cmo and .cma files that are part of the program should have been created with ocamlc -g, and they must be linked together with ocamlc -g. Compiling with -g entails no penalty on the running time of programs: object files and bytecode executable files are bigger and take longer to produce, but the executable files run at exactly the same speed as if they had been compiled without -g. OPTIONS
A summary of options are included below. For a complete description, see the html documentation in the ocaml-doc package. -c count Set the maximum number of simultaneously live checkpoints to count. -cd dir Run the debugger program from the working directory dir, instead of the current working directory. (See also the cd command.) -emacs Tell the debugger it is executed under Emacs. (See The Objective Caml user's manual for information on how to run the debugger under Emacs.) -I directory Add directory to the list of directories searched for source files and compiled files. (See also the directory command.) -s socket Use socket for communicating with the debugged program. See the description of the command set socket in The Objective Caml user's manual for the format of socket. -version Print version string and exit. -vnum Print short version number and exit. -help or --help Display a short usage summary and exit. SEE ALSO
ocamlc(1) The Objective Caml user's manual, chapter "The debugger". AUTHOR
This manual page was written by Sven LUTHER <luther@debian.org>, for the Debian GNU/Linux system (but may be used by others). OCAMLDEBUG(1)
Man Page