From: Pierre Weis <Pierre.Weis@inria.fr>
To: georges.mariano@inrets.fr (Georges Mariano)
Cc: caml-list@inria.fr
Subject: Re: tiny toplevel
Date: Tue, 8 Aug 2000 15:41:56 +0200 (MET DST) [thread overview]
Message-ID: <200008081341.PAA13260@pauillac.inria.fr> (raw)
In-Reply-To: <39901098.42459B42@inrets.fr> from Georges Mariano at "Aug 8, 100 01:52:24 pm"
> Hello,
>
> I know it is possible to create (specific) toplevels
> by adding some stuff to the original toplevel but...
> is it possible to do the reverse, i.e creating toplevels
> by removing some (supposed) unnecessary libraries/components ??
>
> By the way, what's the size of the "smallest" possible toplevel
> (if 'smallest' make sense...) ??
>
> (why this question ??? well, no particular point but
> think
> - about comparing "scripting language" interpreters (size)
> - about "tiny ocaml" or "embedded ocaml" ...
> )
>
> [I have no idea about what can be removed from the original toplevel :-)
> just a question
> ]
> Thanks
> --
> > Georges MARIANO tel: (33) 03 20 43 84 06
> > INRETS, 20 rue Elisee Reclus fax: (33) 03 20 43 83 59
It is not easy to remove ``unnecessary libraries/components'' from the
toplevel executable program, since you need all the compiler anyway,
in order to ``interpret'' the language. If you want to remove
something, you should probably remove features from the language (for
instance use Caml Light instead of Objective Caml!).
However, a very simple experiment shows that the Caml toplevels are
not extremely big, compared to usual command interpreters:
mouton:/$ ps ug
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
weis 7506 0.1 0.7 1564 904 pts/5 S 14:15 0:00 /bin/bash -i
weis 7546 0.1 1.2 2840 1652 pts/5 T 14:16 0:00 ocamlrun /usr/bin
weis 7656 1.6 0.5 1484 660 pts/5 T 14:17 0:00 camlrun /usr/loca
weis 7665 0.0 0.6 2252 844 pts/5 T 14:18 0:00 perl
weis 7657 0.0 0.6 2500 876 pts/5 R 14:18 0:00 ps ug
Hope this helps,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/
next prev parent reply other threads:[~2000-08-08 13:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-08 13:52 Georges Mariano
2000-08-08 13:41 ` Pierre Weis [this message]
2000-08-08 16:21 ortmann
2000-08-09 11:29 ` Markus Mottl
2000-08-09 12:29 ` Georges Mariano
2000-08-09 13:03 ` Markus Mottl
2000-08-09 17:45 ` Xavier Leroy
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=200008081341.PAA13260@pauillac.inria.fr \
--to=pierre.weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=georges.mariano@inrets.fr \
/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