This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Two other optimization questions.
> G++ will have to support something like this soon too, for an efficient
> Standard C++ "export" implementation, perhaps based on the existing -frepo
> code ?
It seems that the emerging approach to a potential export
implementation is somewhat different: Put a 'source equivalent' into a
special section of the object file, then have collect2 extract the
source from the object file, and cc1plus perform the remaining
instantiations.
That approach would have the advantage that source isn't needed when
linking, and that you don't need all the .rpo files. In short, it
would work with libraries. AFAIK, no code in that direction is
available.
Regards,
Martin