From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
To: caml-list@inria.fr
Subject: Compiler internals question
Date: 02 Jul 1998 10:55:30 +0200 [thread overview]
Message-ID: <y9lbtr8lji5.fsf@brabantio.informatik.uni-tuebingen.de> (raw)
[ Many thanks, Xavier, for your previous answer to my byterun
question! ]
Consider the following O'Caml fragment:
type bla = A of int | B of int * int | C of int * int * int
match f 5 with B(_, _) -> 17
The latter line is compiled into Lambda intermediate code as:
(catch
(let (match/51 (apply (global f/49g) 5))
(catch
(switch match/51
case tag 1:
(let (match/52 (field 0 match/51) match/53 (field 1 match/51)) 17))
with exit))
with (raise (makeblock 0 (global Match_failure/12g) [0: "" 0 28])))
Does the inner "catch" serve any purpose or is it redundant?
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
next reply other threads:[~1998-07-02 21:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-02 8:55 Michael Sperber [Mr. Preprocessor] [this message]
1998-07-04 12:47 ` 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=y9lbtr8lji5.fsf@brabantio.informatik.uni-tuebingen.de \
--to=sperber@informatik.uni-tuebingen.de \
--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