From: Jason Noakes <jjnoakes@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Reading external references from cmo/cmx files
Date: Sat, 04 Oct 2008 16:20:15 -0400 (EDT) [thread overview]
Message-ID: <2738.192.168.2.3.1223151615.squirrel@192.168.2.5> (raw)
Are there any tools or examples that would allow me to take a .cmo or .cmx
file and produce a list of the external modules that are referenced from
that file?
I'm trying to sort a list of .cmo or .cmx files so that they may link
successfully.
ocamlc -o binary a.cmo b.cmo c.cmo
I know of the "ocamldsort" tool but I'd rather have a tool that took in
the binaries and sorted those (it fits much better in my Makefile that
way). The ocamldsort tool only works on source files.
If I could just read a list of external module references out of a .cmo
file I could topologically sort them on my own (or error out if there is a
cycle).
Any ideas?
-JJ
--
<< Jason J. Noakes >>
next reply other threads:[~2008-10-04 20:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-04 20:20 Jason Noakes [this message]
2008-10-04 20:39 ` [Caml-list] " David Teller
2008-10-04 20:41 ` Stéphane Glondu
2008-10-05 7:51 ` Stefano Zacchiroli
2008-10-05 8:12 ` Re : " Adrien
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=2738.192.168.2.3.1223151615.squirrel@192.168.2.5 \
--to=jjnoakes@gmail.com \
--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