From: Romain Bardou <Romain.Bardou@lri.fr>
To: Alp Mestan <alp@mestan.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Question about the -dlambda option of ocamlc/ocamlopt
Date: Wed, 25 Mar 2009 10:02:56 +0100 [thread overview]
Message-ID: <49C9F340.9080400@lri.fr> (raw)
In-Reply-To: <cbe39dfc0903241130j3b56e31n5d051c6447fa3345@mail.gmail.com>
Alp Mestan a écrit :
> Hi,
>
> I'm currently studying the lambda code generation phase of the standard
> OCaml compiler.
>
> You can take a look at this for an example :
> http://blog.mestan.fr/2009/03/22/ocaml-and-dlambda-1/
>
> I'm wondering what is 'makeblock' for ?
> And why is there '/<a number>' after every variable/function name ?
> Isn't the name sufficient for identifying variables ?
>
> Thanks !
If I recall correctly, makeblock is for block allocation and is used to
make empty blocks for everything that does not fit in just one integer.
The /<a number> is used to uniquely identify identifiers. In this example :
let x = 1 in let x = 2 in x
The /<a number> allows you to know which "let" variable is represented
by the "x" at the end.
--
Romain Bardou
next prev parent reply other threads:[~2009-03-25 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 18:30 Alp Mestan
2009-03-25 9:02 ` Romain Bardou [this message]
2009-03-25 10:07 ` [Caml-list] " Alp Mestan
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=49C9F340.9080400@lri.fr \
--to=romain.bardou@lri.fr \
--cc=alp@mestan.fr \
--cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).