At least in Atmel, there’s a compiling option to “optimize for size” that I believe should take care of this.