From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA00871; Thu, 13 Nov 2003 10:18:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA01729 for ; Thu, 13 Nov 2003 10:18:34 +0100 (MET) Received: from mwinf0604.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAD9IY102641 for ; Thu, 13 Nov 2003 10:18:34 +0100 (MET) Received: from iliana (AStrasbourg-206-1-6-42.w80-14.abo.wanadoo.fr [80.14.69.42]) by mwinf0604.wanadoo.fr (SMTP Server) with ESMTP id B3E0328001F3; Thu, 13 Nov 2003 10:18:33 +0100 (CET) Received: from luther by iliana with local (Exim 3.36 #1 (Debian)) id 1AKDcY-0001No-00; Thu, 13 Nov 2003 10:18:34 +0100 Date: Thu, 13 Nov 2003 10:18:34 +0100 To: Brian Hurt Cc: Sven Luther , Richard Jones , John J Lee , caml-list@inria.fr Subject: Re: [Caml-list] Executable size? Message-ID: <20031113091834.GB5181@iliana> References: <20031112183858.GB16395@iliana> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Sven Luther X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sven:01 luther:01 sven:01 luther:01 0600,:01 printf:01 printf:01 ocamlc:01 -where:01 meg:99 988:99 toplevellib:01 inclined:01 tarballs:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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