caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "SooHyoung Oh" <shoh@duonix.com>
To: <caml-list@inria.fr>, "A Joseph Koshy" <koshy@india.hp.com>
Subject: Re: [Caml-list] embedded caml?
Date: Thu, 8 Nov 2001 16:25:08 +0900	[thread overview]
Message-ID: <005d01c16826$7edc5760$1e01a8c0@hama> (raw)
In-Reply-To: <200111080617.LAA12169@postbox.india.hp.com>


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" <koshy@india.hp.com>
To: <caml-list@inria.fr>
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
> <koshy@india.hp.com>            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


  reply	other threads:[~2001-11-08  7:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-08  6:17 A Joseph Koshy
2001-11-08  7:25 ` SooHyoung Oh [this message]
2001-11-08 11:30 ` Christopher Quinn
2001-11-11 17:20 ` Xavier Leroy
2001-11-11 17:43   ` Alwyn Goodloe
2001-11-13 20:26     ` Xavier Leroy
2001-11-15  8:33       ` [Caml-list] [Summary] " A Joseph Koshy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005d01c16826$7edc5760$1e01a8c0@hama' \
    --to=shoh@duonix.com \
    --cc=caml-list@inria.fr \
    --cc=koshy@india.hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).