3 ms·
But (2) requires knowing everything the binary will do. You can’t know what something won’t do without knowing what it will do.
by colejohnson66 4y ago
But (2) requires knowing everything the binary will do. You can’t know what something won’t do without knowing what it will do.
- tadfisher 4y agoYou can do (2) if you can tolerate false positives. For example, if a symbol isn't referenced literally elsewhere in the binary, consider it unused, but add a configuration option to keep it in case it is referenced dynamically. The JVM world has been doing this for years with ProGuard.