More and more devices contain computers with limited amounts of memory. As a result, code compaction techniques are gainingpopularity, especially when they also improve performance and powerconsumption, or at least not degrade it. This paper quantifies theside-effects of code abstraction on performance using extensivemeasurements and simulations on the SPECint2000 benchmark suite andsome additional C++ programs. We show how to use profile informationin order to obtain almost all the code size reduction benefits of codeabstraction, yet experience almost none of its disadvantages.