tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How to get all available symbols of a TCC state?


From: uso ewin
Subject: Re: [Tinycc-devel] How to get all available symbols of a TCC state?
Date: Thu, 17 May 2018 18:26:43 +0200

On Thu, May 17, 2018 at 2:23 PM, Jan Boon <address@hidden> wrote:
> Hi all,
>
> Is there any mechanism to get all the symbols available through
> tcc_get_symbol when using an in memory TCC state? The goal is to expose all
> symbols of one TCC state to another TCC state which is more frequently
> recompiled.
>
> Thanks,
> Jan Boon
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

For elf, you can get symtab in TCCState, then use data inside it
(check the code of find_elf_sym)
inside tccelf.c.
I don't know about Windows, but I guess you can do the same kind of thing
I didn't find a public function for that, but it should not be hard to do



reply via email to

[Prev in Thread] Current Thread [Next in Thread]