GNU C modules compiled separately = 37% reduction in speed
Posted: 27 Sep 2006, 17:53
Hi,
I recently separated out my program into 5 modules
(instead of 1) and plan for more modules.
I noticed the speed of the program on its current
standard benchmark dropped 37% as a result.
When I combine all the code into one module, eliminate
all but a main include at the top, and recompile,
I get 37% faster than the modularized form.
My question is, does anyone know why this happens?
Stuart
I recently separated out my program into 5 modules
(instead of 1) and plan for more modules.
I noticed the speed of the program on its current
standard benchmark dropped 37% as a result.
When I combine all the code into one module, eliminate
all but a main include at the top, and recompile,
I get 37% faster than the modularized form.
My question is, does anyone know why this happens?
Stuart