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 SAA31669; Wed, 12 Nov 2003 18:35:37 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA31829 for ; Wed, 12 Nov 2003 18:35:36 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hACHZZ129296 for ; Wed, 12 Nov 2003 18:35:35 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AJys3-0008QX-00; Wed, 12 Nov 2003 17:33:35 +0000 Date: Wed, 12 Nov 2003 17:33:35 +0000 To: John J Lee Cc: caml-list@inria.fr Subject: Re: [Caml-list] Executable size? Message-ID: <20031112173335.GA32347@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 haskell:01 runtime:01 criticism:01 runtime:01 statically:01 dynamically:01 usr:01 freshmeat:01 bin:01 ltd:98 ocaml:01 ocaml:01 bytecode:01 executables:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Nov 12, 2003 at 04:14:54PM +0000, John J Lee wrote: > How does O'Caml compare with languages like Haskell (ghc), C and C++ for > executable size? Does compiled code depend on a runtime library (and how > big is that, if so)? This is not a criticism of OCaml, but the executables do tend to be quite large. This seems mainly down to the fact that OCaml links the runtime library in statically. There was previous discussion on this list about the merits and problems with linking the runtime dynamically. Of course you can always use OCaml as a scripting language (ie. tiny "executables" preceeded by #!/usr/bin/ocaml), or distribute the bytecode, which tends to be small, so you have more choices than the languages you've listed above. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment "My karma ran over your dogma" ------------------- 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