This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Add a program to read IL symbol tables
On Thu, Aug 21, 2008 at 08:37, Rafael Espindola <espindola@google.com> wrote:
>> How about introducing a liblto directory?
>
> I don't think we want to do that. An hypothetical liblto should not
> link with gcc (that is why I created the symbol table in the first
> place). Since it would work only on the symbol table, any clients of
> liblto could use the plugin API. Making everyone use the plugin API
> reduces the number of public APIs we have to maintain.
No, I didn't make my point clear. I am driving towards a generic API
that will be able to manipulate .lto files, much like objdump can
manipulate .o files.
This would imply that we make most of the middle-end a library.
Initially, clients would need to be build inside the GCC tree, over
time we could even do away with that and provide a stand-alone shared
library.
Diego.