tags:

views:

565

answers:

1

My main interest is with moving code from header files to source files (for decoupling), but keeping the same performance for the inlined stuff.

I'm not sure where to get started, could someone explain what to do?

+1  A: 

We have made very limited experiments. In our case, performance gains where quite neglictible, but as we had already taken care of having good inlining, that's not extremely surprising.

However, enabling LTO incurred a huge increase in GCC's memory consumption, basically making parallel compilation impossible on our 4 CPU / 4 GB developpement machines, so we suspending the experiment and are waiting for future versions to try again.

Zorglub
that's sad; LTO makes C far more usable, imo; currently, it's often impossible to use opaque pointers because you need the full definitions for inline functions
Christoph