3 ms·
Dead code elimination would require all code paths to be compilable by the compiler being run. That need not be the case, and typically isn’t. If you do #i
by Someone 8y ago
Dead code elimination would require all code paths to be compilable by the compiler being run.
That need not be the case, and typically isn’t. If you do
#if USE_FOO
#include <foo.h>
#endif
the foo.h header only need to be present on platforms where USE_FOO is defined, and need only be compilable on those platforms (it might use nonstandard compiler extensions, for example containing assembly instructions)