caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xleroy@pauillac.inria.fr>
To: Judicael.Courant@lip.ens-lyon.fr (Judicael Courant)
Cc: caml-list@pauillac.inria.fr
Subject: Re: Dead code removal / cross references
Date: Mon, 14 Nov 1994 11:38:32 +0100 (MET)	[thread overview]
Message-ID: <9411141038.AA04420@pauillac.inria.fr> (raw)
In-Reply-To: <9411100811.AA02292@lip.ens-lyon.fr> from "Judicael Courant" at Nov 10, 94 09:11:51 am

> j'aimerais disposer d'outils permettant d'avoir des
> références croisées

> quels modules sont utilisés par tel module ?
La distribution contient un script (src/runtime/camldep) qui produit
des listes de dependances pour make. Essentiellement, il determine
quels modules sont references (via #open ou la notation __) dans un
fichier source. Cet outil n'est pas 100% exact (p.ex. le code mis en
commentaires n'est pas ignore), mais fait l'affaire pour un Makefile.

> ou est définie telle fonction ?
L'outil mletags (contrib/mletags dans la distribution) fait a peu pres
ca. Il construit un "tag file" pour Emacs qui indexe les definitions
de globaux.

> ou est appelée telle fonction ?
Les fonctions etant des valeurs de premiere classe, la reponse exacte
a cette question est difficile.

> détecter et éliminer les #open inutiles
Ca serait utile, en effet, mais ca n'est pas facile.

> et le code mort (relativement a un ou des fichiers donnés).
Le linker elimine le code des phrases qui definissent des globaux
jamais references (pourvu que ces phrases n'aient evidemment pas
d'effets de bord). 

- Xavier Leroy




  reply	other threads:[~1994-11-14 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-10  8:11 Judicael Courant
1994-11-14 10:38 ` Xavier Leroy [this message]
1994-11-11 19:18 Doug Currie, Flavors Technology, Inc.

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=9411141038.AA04420@pauillac.inria.fr \
    --to=xleroy@pauillac.inria.fr \
    --cc=Judicael.Courant@lip.ens-lyon.fr \
    --cc=caml-list@pauillac.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).