Guide39.3K views3,683 votes0 replies3,547 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 Burneyowner30.3K rep · 25 Sept 2025, 18:50 UTC