I was eyeing tcc today for a possible little toy experiment, to implement a micro-lisp and using tcc for dynamic code generation. One thing that would be way cool would be to be able to load a DLL or compile a C program to memory, and then list all of its symbols, returning them perhaps as an array of char pointers, or some other suitable representation. I think I could somehow do it by starting with find_elf_sym and modifying it a little bit to dump the hash table, but all I'm saying is, as a suggestion, that would be a good function to put in libtcc, no?
In the same vein, if I compile a C program, in addition to getting the symbol name, it would be nice to get the signature. That I don't know how to do myself.