On Friday, September 14, 2012 6:34:01 PM UTC+1, Snark wrote:

> Here is a good question: if it's possible to split for a more efficient 
> compilation, why doesn't the compiler just do that automatically? 


The optimization is eating your box alive, the rest is peanuts compared to 
that. 

At least in the old times, the optimizer would only operate locally in each 
compilation unit. If you split it into many compilation units then there 
are less optimizations possible. For example you can't inline a function 
that is defined in another compilation unit, because you don't know the 
function body.

Of course things are more difficult nowadays since compilers want to 
overcome this limitation. GCC can now do optimizations across compilation 
units.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to