delorie.com/archives/browse.cgi | search |
Date: | Tue, 6 Jul 93 18:51:40 EDT |
From: | peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) |
To: | pcrowley AT qdeck DOT com |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | How do you eliminate dead code? |
> #define TRACE 0 > if (TRACE) fprintf(stderr... > I am compiling this with -O2 -m486. Does anyone know if there is a switch > to eliminate the inaccessable code? You could eliminate it at the preprocessor stage by something like: #if TRACE>0 fprintf(stderr... #endif but the change might not be fun if you have lots of code using the old style.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |