From: "Mark Shinwell" <mshinwell@janestreet.com>
To: Jianzhou Zhao <jianzhou@seas.upenn.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Debugging C and OCaml
Date: Tue, 2 Mar 2010 07:36:10 +0000 [thread overview]
Message-ID: <20100302073610.GG26002@janestreet.com> (raw)
In-Reply-To: <9dfe358d1003011652p5732e592t465468d0d8a64b42@mail.gmail.com>
On Mon, Mar 01, 2010 at 07:52:01PM -0500, Jianzhou Zhao wrote:
> > It seems that OCaml runtime is interpreting via 'caml_interprete' the
> > OCaml function which C
> > calls at runtime. If this is true, we cannot really debug that OCaml
> > function, but we can
> > see how it is interpreted. But I guess we can debug the real assembly if I do
> > native compilation.
>
> If we do native compilation, will each OCaml function be assembled to
> a function in assemly with a readable name? That will help a lot while
> reading the assemly code.
The names are mangled, but it's pretty easy to work out what they correspond
to, except in the case of anonymous functions where you may need to do some
detective work.
Mark
next prev parent reply other threads:[~2010-03-02 7:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 15:10 Jianzhou Zhao
2010-03-01 15:19 ` [Caml-list] " Mark Shinwell
2010-03-01 19:24 ` rixed
2010-03-01 19:27 ` Mark Shinwell
2010-03-02 9:50 ` rixed
2010-03-02 0:48 ` Jianzhou Zhao
2010-03-02 0:52 ` Jianzhou Zhao
2010-03-02 7:36 ` Mark Shinwell [this message]
2010-03-02 7:42 ` Mark Shinwell
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=20100302073610.GG26002@janestreet.com \
--to=mshinwell@janestreet.com \
--cc=caml-list@yquem.inria.fr \
--cc=jianzhou@seas.upenn.edu \
/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