Compiler optimizations for size reduction