Re: Full fat or skimmed
I'm not sure that's an operating-system-specific comment.
I have a project that's about ~60,000 lines in total. With the latest Clang, all optimisations turned up to the appropriate maximum, the binary it produces is 21,595,120 bytes in size.
I comment to a ridiculous volume, and write for legibility, avoiding code-golf-esque monstrosities, so suffice to say that the implied 360 bytes per line is somewhat of a surprise.
It's C++ but I'll use a template only when there's actually some generic behaviour to describe. At one of my previous workplaces I knew somebody who seemed to believe in templates to allow completely different code paths for almost all runtime selection — anything you'd normally pass to a constructor by value he'd try to work into the template directly. "For performance", obviously.
One of his ~30,000 line projects could no longer be built for 32-bit targets because the binary it produced was larger than 4gb.