From: Richard Jones <rich@annexia.org>
To: caml-list@inria.fr
Subject: [Caml-list] Print dependencies of a module, and other useful functions
Date: Thu, 7 Aug 2003 14:04:19 +0100 [thread overview]
Message-ID: <20030807130419.GA5044@redhat.com> (raw)
Are there any equivalents to the following functions / programs for
OCaml?
'gcc -MM' / 'gcc -MMD'
Print dependencies of a module. Useful for me for building
robust Makefiles.
'nm' / 'nm -D'
List symbols exported by an OCaml bytecode "binary". Would
help me solve my ongoing Dynlink problems.
'objdump'
List other useful information from an OCaml bytecode "binary".
Also in the debugger, how can I get OCaml to display the parameters
being passed to a function in the stack trace. At the moment I just
see things like:
#0 Pc : 453960 ZAssocs char 2550
#1 Pc : 452492 ZAssocs char 5608
#2 Pc : 14044 List char 1961
#3 Pc : 476772 Model char 24895
#4 Pc : 476772 Model char 24895
#5 Pc : 476772 Model char 24895
#6 Pc : 476800 Model char 24880
#7 Pc : 513364 Simulator char 4635
#8 Pc : 565728 Main char 14244
#9 Pc : 446708 Lib char 711
#10 Pc : 565972 Main char 14494
which is not very useful. It would be nice to show args too.
Rich.
--
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
'There is a joke about American engineers and French engineers. The
American team brings a prototype to the French team. The French team's
response is: "Well, it works fine in practice; but how will it hold up
in theory?"'
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2003-08-07 13:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-07 13:04 Richard Jones [this message]
2003-08-07 13:23 ` Michal Moskal
2003-08-15 13:21 ` Stefano Zacchiroli
2003-08-15 13:36 ` Michal Moskal
2003-08-18 11:06 ` Sven Luther
2003-08-15 13:42 ` Richard Jones
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=20030807130419.GA5044@redhat.com \
--to=rich@annexia.org \
--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