comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <nono@celes.unizar.es>
Subject: Re: Source Analysis Tools for Ada95
Date: Sun, 27 Apr 2003 17:15:19 +0200
Date: 2003-04-27T17:15:19+02:00	[thread overview]
Message-ID: <MPG.19161270da0c7059896ea@News.CIS.DFN.DE> (raw)
In-Reply-To: x7v65p08nhs.fsf@smaug.pushface.org

Simon Wright dice...
> tony@probepak.com (Dr. Anthony Probe) writes:
> 
> > > Gnat includes "gnatelim" which generates a list of gnat specific
> > > pragmas causing no object code to be built for dead code.  You
> > > should be able to use this as a starting point for deleting unused
> > > code.
> > 
> > Wouldn't a compiler only detect the obvious dead code (that which
> > isn't used from just analyzing the comp unit?
> 
> I have never used gnatelim, because the one time I tried it took a
> long time (this was a few years ago) and I didn't really have a
> problem anyway. But its intention is to find and mark those
> subprograms (?and other constructs?) that aren't used in the
> closure. Sounds like what you're after!

My two experiences with gnatelim were a bit disappointing. I don't know 
if I did something wrong, but in both cases Gnat tried to remove 
subprograms who where actually being called.

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



  reply	other threads:[~2003-04-27 15:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-26  0:07 Source Analysis Tools for Ada95 Dr. Anthony Probe
2003-04-26  2:21 ` Steve
2003-04-26 22:34   ` Dr. Anthony Probe
2003-04-27  6:26     ` Simon Wright
2003-04-27 15:15       ` Jano [this message]
2003-04-27 21:32         ` Frode Tennebø
2003-04-28 18:51           ` Jano
2003-04-27 18:49   ` tmoran
2003-04-27  2:36 ` Alex Gibson
2003-04-27 19:56   ` Peter Richtmyer
2003-04-27 16:43 ` Dr. Michael Paus
  -- strict thread matches above, loose matches on Subject: below --
2003-04-29 17:37 Lionel.DRAGHI
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox