|
From: | Fabrice Bellard |
Subject: | Re: [Tinycc-devel] tcc_{remove|redefine}_symbol ? |
Date: | Thu, 24 Apr 2003 17:31:16 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020828 |
david wallin wrote:
Hello again,I would like to be able to recompile a string containing the same functions as the time before. Would it be possible/easy to add a 'tcc_remove_symbol' to libtcc ? Alternatively: 'tcc_redefine_symbol'.I could, of course, start over with a new TCCState, but could the above be better performance wise?
tcc_remove_symbol would be doable by replacing the symbol name with an empty string and by suppressing it from the hash table. The problem is that the associated compiled code is still present. Creating a new context should be quite fast. It could be a lot faster by generating the token names only once.
Fabrice.
[Prev in Thread] | Current Thread | [Next in Thread] |