Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Lyn A Headley <laheadle@midway.uchicago.edu>
To: caml-list@inria.fr
Subject: overview of bootstrapping caml light
Date: Tue, 25 Feb 1997 22:49:33 -0600	[thread overview]
Message-ID: <199702260449.WAA18628@kimbark.uchicago.edu> (raw)

[il y a un sommaire pauvre de ce message au fin]

dear caml-list,

I have been trying to understand the bootstrapping process
which takes place during caml light installation.  If you'll
indulge me, I'd like to present my view of what is going on,
to see if I have the right idea, and then ask some questions.

The first step is building the runtime system(written in C).  This
includes an interpreter for the caml light abstract machine.  Then the
produced executable, "runtime", is invoked on the file "compiler,"
which I *think* is a byte-compiled implementation of a *subset* of the
caml-light language. In this way the core library, actual compiler,
linker, librarian, and toplevel are compiled into bytecode.

my questions:

1.) does the included bytecode file "compiler" implement only a subset
of the language? It seems that this is indeed the case, otherwise
there would be no point in compiling the subdirectory "compiler,"
would there?  And yet, if it is a subset, why?  I mean why not just
include a bytecoded compiler for the *entire* language?  Basically I
am wondering why the subdirectory "compiler" is included in the
distribution.

2.) How do src/runtime/parsing.c, src/runtime/lexing.c, 
src/compiler/parser.ml, src/compiler/lexer.ml, src/lex,
and src/yacc fit into this whole picture?

-------------------------------------------------------
[en francais]

j'essaye comprendre le processus de 'bootstrapping'.

questions:

1) est-ce que le fichier (dossier?) 'compiler' travaille pour un petit 
part de la langue caml?  

2) comment est-ce-que l'analysis de la syntaxe travaile?





             reply	other threads:[~1997-02-26  8:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  4:49 Lyn A Headley [this message]
1997-02-26  9:58 ` 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=199702260449.WAA18628@kimbark.uchicago.edu \
    --to=laheadle@midway.uchicago.edu \
    --cc=caml-list@inria.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