Ben Pfaff wrote:
> Is it safe to use an external function that is only defined in a
> separate translation unit?  For example, to define an empty
> function in a source file all by itself, then use a call to it as
> a barrier.

With more and more optimisations being pushed into the linker, this
doesn't look safe for the long term.

> (Are there compilers or linkers that do inter-module optimization?)

GCC 4.0 already does, when you pass several source files together on the
command line, and specify the option '-combine'.

Bruno


Reply via email to