Wanted: source code dead code remover 
Author Message
 Wanted: source code dead code remover

I looking for a program that will act as a global (i.e. over a whole)
program dead code remover that works on source code. In other words,
it analyzes the program from back to front and removes code that
is not used in output. These things exist at least for single routines
inside compilers. Has anybody tried to write a source code one??

Doug McDonald



Sun, 04 Sep 1994 09:54:04 GMT  
 Wanted: source code dead code remover

Quote:

>I looking for a program that will act as a global (i.e. over a whole)
>program dead code remover that works on source code. In other words,
>it analyzes the program from back to front and removes code that
>is not used in output. These things exist at least for single routines
>inside compilers. Has anybody tried to write a source code one??

Doing this over a whole program is problematical.  You have to include
all the modules that make up the program as well as all the library
routines that will be linked in.  If you want something that looks at
a single file program or a single module of of a larger program then you
can do this by declaring everything static that isn't intended to be used
outside of the module.  Most modern compilers have switches to warn about
these functions if they are not actually referenced within the module.

--

D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871          DoD#0082  |



Sun, 04 Sep 1994 23:20:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to convert source code pascal to source code c

2. is there a code remover

3. Java source code to CSharp source code converter

4. C source code tool wanted

5. libc.a source code wanted

6. Source code for Editor Wanted

7. Wanted: Modem Source Code

8. Source Code wanted

9. Source code for a C Compiler wanted

10. Source code for data compression -- wanted

11. CRC-16 source code wanted

12. Source code to virus wanted?

 

 
Powered by phpBB® Forum Software