This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
projects [2017-03-01 21:19] joshtriplett Update work in progress |
projects [2017-06-13 22:27] (current) joshtriplett New project: eliminate unused printing code |
||
---|---|---|---|
Line 67: | Line 67: | ||
* Automatic structure re-layout to drop fields not referenced | * Automatic structure re-layout to drop fields not referenced | ||
* Dropping structure field assignments; mark dead fields with an attribute, ignore writes, error on reads | * Dropping structure field assignments; mark dead fields with an attribute, ignore writes, error on reads | ||
+ | * Compile out support for specific format-string components from snprintf and family; would require some support from the toolchain to detect which ones get used in a build. Alternatively, replace all the non-human-targeted uses of snprintf with a call to an underlying helper function shared with snprintf, and then use dead code elimination to drop the unused ones. |