Monday, August 15, 2011

How many lines of C++ code per megabyte?

Not really. Depending on how the code was written and compiled, you'll get significantly different compiled code size. For example, adding "inline" to a common function declaration can more than double the final binary size. "-unroll" compilation flag can add another 3-5x to the final size. These things all add up quickly.

No comments:

Post a Comment