3 ms·
That makes me wonder: is there some tool for C that does dead-code elimination of source code rather than of the target binary? Something that'd strip out all t
by derefr 6y ago
That makes me wonder: is there some tool for C that does dead-code elimination of source code rather than of the target binary? Something that'd strip out all these un-referenced constants?
It certainly wouldn't be useful for most projects, because most code that's un-referenced is only temporarily so. But in this codebase, it's a more permanent thing, with the driver for any given model being guaranteed to never need e.g. hardware register addresses for hardware doesn't have.