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 IAA06825; Thu, 8 Nov 2001 08:23:50 +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 IAA02822 for ; Thu, 8 Nov 2001 08:23:49 +0100 (MET) Received: from jupiter.duonix.com ([211.41.0.239]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fA87Nkv03380 for ; Thu, 8 Nov 2001 08:23:47 +0100 (MET) Received: from hama (hama.duonix.com [192.168.1.30]) by jupiter.duonix.com (8.11.2/8.11.2) with SMTP id fA87MQi12952; Thu, 8 Nov 2001 16:22:26 +0900 Message-ID: <005d01c16826$7edc5760$1e01a8c0@hama> From: "SooHyoung Oh" To: , "A Joseph Koshy" References: <200111080617.LAA12169@postbox.india.hp.com> Subject: Re: [Caml-list] embedded caml? Date: Thu, 8 Nov 2001 16:25:08 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've thinking about using O'Caml in embedded system, too. (1) Caml light How about using caml light instead of o'caml? A document says: The runtime system (the part written in C) is about 100K, plus another 100K of bytecode for the compiler. The compiler itself is written in Caml Light and ``bootstrapped'' -- compiled by itself. camlrun: ~50K camltop: ~152K stdlib.zo: ~400K lib: *.zi, *.zix: ~318K (2) Interpreter: ocaml It seems that it needs "ocamlrun" at least. ocaml: ~825K (compressed 169K) ocamlrun: ~138K (compressed 55K) (3) How to reference physical address. Through Ocaml -> C interface. --- SooHyoung Oh ----- Original Message ----- From: "A Joseph Koshy" To: Sent: Thursday, November 08, 2001 3:17 PM Subject: [Caml-list] embedded caml? > > I am trying to get O'Caml to run in an extremely resource constrained > environment. To this end I am interested in getting the O'Caml > program to run in as small a memory footprint as possible (GC induced > latencies are not a problem). > > Today using OCaml 3.02 on FreeBSD 4.3, a simple hello world program > like, >> print_endline "Hello World";; << translates to > > o 8554 bytes of interpreter bytecode, and, > o 111945 bytes of executable code (using the -custom switch to > "ocamlc") > > I would like to ask if anyone has considered Caml for embedded > applications? > > Any suggestions as to where I should start looking? > > Regards, > Koshy > Technical Consultant, HP-ISO, Bangalore. > ------------------- > Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ > 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/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr