Guide39.3K views593 votes0 replies2,996 following
GCC -ffunction-sections and -fdata-sections for dead code elimination
How to use -ffunction-sections, -fdata-sections and --gc-sections to strip unused code and shrink embedded binaries.
linker-gc-sectionsgcc-optimizationembedded-developmentTasadduq Burneyowner35.8K rep · 25 Sept 2025, 18:50 UTC