147 lines
3.1 KiB
HTML
147 lines
3.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of OCAMLMKTOP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>OCAMLMKTOP</H1>
|
|
Section: User Commands (1)<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ocamlmktop - Building custom toplevel systems
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ocamlmktop</B>
|
|
|
|
[
|
|
<B>-v</B>|<B>-version</B>|<B>-vnum</B>
|
|
|
|
]
|
|
[
|
|
<B>-cclib</B><I> libname</I>
|
|
|
|
]
|
|
[
|
|
<B>-ccopt</B><I> option</I>
|
|
|
|
]
|
|
[
|
|
<B>-custom</B>
|
|
|
|
[
|
|
<B>-o</B><I> exec-file</I>
|
|
|
|
]
|
|
[
|
|
<B>-I</B><I> lib-dir</I>
|
|
|
|
]
|
|
<I>filename ...</I>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
The
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlmktop">ocamlmktop</A></B>(1)
|
|
|
|
command builds OCaml toplevels that
|
|
contain user code preloaded at start-up.
|
|
The
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlmktop">ocamlmktop</A></B>(1)
|
|
|
|
command takes as argument a set of
|
|
<I>x</I>.cmo
|
|
|
|
and
|
|
<I>x</I>.cma
|
|
|
|
files, and links them with the object files that implement the
|
|
OCaml toplevel. If the
|
|
<B>-custom</B>
|
|
|
|
flag is given, C object files and libraries (.o and .a files) can also
|
|
be given on the command line and are linked in the resulting toplevel.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
The following command-line options are recognized by
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlmktop">ocamlmktop</A></B>(1).
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-v</B>
|
|
|
|
<DD>
|
|
Print the version string of the compiler and exit.
|
|
<DT id="2"><B>-vnum</B> or <B>-version</B>
|
|
|
|
<DD>
|
|
Print the version number of the compiler in short form and exit.
|
|
<DT id="3"><B>-cclib -l</B><I>libname</I>
|
|
|
|
<DD>
|
|
Pass the
|
|
<B>-l</B><I>libname</I>
|
|
|
|
option to the C linker when linking in
|
|
``custom runtime'' mode (see the corresponding option for
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1).
|
|
|
|
<DT id="4"><B>-ccopt</B>
|
|
|
|
<DD>
|
|
Pass the given option to the C compiler and linker, when linking in
|
|
``custom runtime'' mode. See the corresponding option for
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1).
|
|
|
|
<DT id="5"><B>-custom</B>
|
|
|
|
<DD>
|
|
Link in ``custom runtime'' mode. See the corresponding option for
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1).
|
|
|
|
<DT id="6"><B>-I</B><I> directory</I>
|
|
|
|
<DD>
|
|
Add the given directory to the list of directories searched for
|
|
compiled interface files (.cmo and .cma).
|
|
<DT id="7"><B>-o</B><I> exec-file</I>
|
|
|
|
<DD>
|
|
Specify the name of the toplevel file produced by the linker.
|
|
The default is is
|
|
<B>a.out</B>.
|
|
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ocamlc">ocamlc</A></B>(1).
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="11"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="12"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:20 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|