"Drago, William @NARDAEAST" <William.Drago@L-3com.com> wrote:
> Thanks, but no thanks. For large programs this is much too labor intensive
> and error prone.
>
> If nothing turns up on the VRF I'll have to write something myself.
Should be pretty easy to write - just parse the source looking
for defined functions and then for function calls and compare the
two lists.
This would catch any "static" code but would of course miss
run-time programmatic calls. To catch these you'd need to do something
at runtime so it would get much more tricky.
But maybe just the static code would suffice?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Thanks, but no thanks. For large programs this is much too labor intensive
> and error prone.
>
> If nothing turns up on the VRF I'll have to write something myself.
Should be pretty easy to write - just parse the source looking
for defined functions and then for function calls and compare the
two lists.
This would catch any "static" code but would of course miss
run-time programmatic calls. To catch these you'd need to do something
at runtime so it would get much more tricky.
But maybe just the static code would suffice?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Michael N.Asbery (202)404-3014, DSN 754
US Naval Research Laboratory fax (202)404-7661
Code5733.20 </span></font><font size=2 color=navy face=Courier><span style='font-size:10.0pt; font-family:Courier;color:navy'>michael.asbery@nrl.navy.mil</span></font><fontcolor=navy face=Arial><span style='font-family:Arial;color:navy'>
</span></font><font size=2 color=navy face=Courier><span style='font-size:10.0pt;font-family:Courier;color:navy'>4555 Overlook Ave SW
Washington DC 20375 :-)
***********************************************************</span></font><fontsize=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p></div><p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><spanstyle='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----
<b><span style='font-weight:bold'>From:</span></b> Drago, William @NARDAEAST[mailto:William.Drago@L-3com.com]
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, August 25, 20042:40 PM
<b><span style='font-weight:bold'>To:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>VRF</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
<b><span style='font-weight:bold'>Subject:</span></b> [vrf] Dead Code</span></font></p><p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><spanstyle='font-size:12.0pt'> </span></font></p><p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>All,</span></font> </p><p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Has anyone written a utility that identifies uncalledfunctions in a vee program?</span></font> </p><p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks,</span></font>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Bill</span></font></p><p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><spanstyle='font-size:12.0pt'>---
You are currently subscribed to vrf as: michael.asbery@nrl.navy.mil
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to"leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to"owner-vrf@it.lists.it.agilent.com". </span></font></p></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>
. . . and after deleting dead code run the utility again to catch UF's that
were only called by the dead code you deleted; repeat until you find no
more.
I agree with Stan that the run-time programmatic calls could be just about
impossible to catch.
--
Bill Ossmann
Philips Ultrasound
e-mail: bill.ossmann@philips.com
"Drago, William @NARDAEAST" <William.Drago@L-3com.com> wrote:
> Thanks, but no thanks. For large programs this is much too labor
intensive
> and error prone.
>
> If nothing turns up on the VRF I'll have to write something myself.
Should be pretty easy to write - just parse the source looking
for defined functions and then for function calls and compare the
two lists.
This would catch any "static" code but would of course miss
run-time programmatic calls. To catch these you'd need to do something
at runtime so it would get much more tricky.
But maybe just the static code would suffice?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: bill.ossmann@philips.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Jeff Davis
Lead Software Test Engineer
CDI Engineering Solutions Aerospace Technologies
Embedded Systems and Electronics
3137 E Elwood # 160
Phoenix, Arizona 85034
Phone: (602)431-4497 (x226)
Cell: (480)330-1431
Fax: (602)431-4435
> -----Original Message-----
> From: bill.ossmann@philips.com [mailto:bill.ossmann@philips.com]
> Sent: Wednesday, August 25, 2004 01:11 PM
> To: VRF
> Subject: [vrf] RE: Dead Code
>
>
>
>
>
>
> . . . and after deleting dead code run the utility again to
> catch UF's that
> were only called by the dead code you deleted; repeat until
> you find no
> more.
> I agree with Stan that the run-time programmatic calls could
> be just about
> impossible to catch.
> --
> Bill Ossmann
> Philips Ultrasound
> e-mail: bill.ossmann@philips.com
>
>
>
> "Drago, William @NARDAEAST" <William.Drago@L-3com.com> wrote:
> > Thanks, but no thanks. For large programs this is much too labor
> intensive
> > and error prone.
> >
> > If nothing turns up on the VRF I'll have to write something myself.
>
> Should be pretty easy to write - just parse the source looking
> for defined functions and then for function calls and compare the
> two lists.
>
> This would catch any "static" code but would of course miss
> run-time programmatic calls. To catch these you'd need to do something
> at runtime so it would get much more tricky.
>
> But maybe just the static code would suffice?
>
> Stan
>
>
> --------------------------------------------------------------
> ------------
> Stan Bischof Agilent Technologies 707-577-3994
> stan_bischof@agilent.com
> --------------------------------------------------------------
> ------------
>
> ---
> You are currently subscribed to vrf as: bill.ossmann@philips.com
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to
> "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list, email "vrf@agilent.com".
> If you need help with the mailing list send a message to
> "owner-vrf@it.lists.it.agilent.com".
>
>
>
>
> ---
> You are currently subscribed to vrf as: jeff.davis@cdi-es.com
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to
> "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list, email "vrf@agilent.com".
> If you need help with the mailing list send a message to
> "owner-vrf@it.lists.it.agilent.com".
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".