[PATCH] After llvm r195496, code compiled with -Os get substantially larger

Tim Northover t.p.northover at gmail.com
Sat Oct 18 12:30:50 PDT 2014


Hi Dimitry,

> In FreeBSD, we have a particular piece of code, a boot loader, which must always fit in 7 kiB, so it is compiled with -Os, and various other parameters that minimize its size.

That kind of hard size requirement sounds like what -Oz was designed for.

Lots of people use -Os as the default optimisation level, and it's
supposed to be more balanced. Given the large performance benefits and
small size penalties mentioned in the original thread, I'm not so sure
about switching this one.

Cheers.

Tim.



More information about the llvm-commits mailing list