Browse thread
[Caml-list] Executable size?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-13 (09:18) |
From: | Sven Luther <sven.luther@w...> |
Subject: | Re: [Caml-list] Executable size? |
On Wed, Nov 12, 2003 at 02:03:35PM -0600, Brian Hurt wrote: > Using printf brings in most of the printf library, and adds about 40K to > the size of the executable. But you only ever need to include it once. > Doing an ls -l `ocamlc -where`/*.cma shows at most about a meg of total > libraries to include everything in the standard library (I'm assuming that > the 988K toplevellib.cma is only needed by the top level). > > If I was willing to let my code out, and download size was important, and > I didn't mind requiring my users to have a compiler/interpreter for the > language installed, then I'd be inclined to just ship bzipped source code > tarballs around. Maybe with a little compile/install script bundled. Notice that the debian package, which is currently split in ocaml-base and ocaml, where ocaml-base contains only the ocamlrun executable and the needed dll.so, and is 400Ko of installed size, will soon be changed to include a ocaml-interpreter or ocaml-toplevel package, of around 3Mo installed size, containing the ocaml toplevel and all the .cma/.cmi needed to run ocaml scripts interactively, without needing to install the full ocaml package, and all its dependencies. In this case, you just need to add ocaml-interpreter to the dependency of the package containing your scripts, and everything will load from itself when you apt-get it :))) Naturally this will only work if you run debian, or macos X. Maybe Cygnus also, but i am not sure. Friendly, Sven Luther ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners