|
| From: | draco |
| Subject: | Re: [Tinycc-devel] Question about in-memory compilation target |
| Date: | Tue, 16 Jan 2024 20:14:26 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Is it possible to keep, use and then release the compiled code after the initial compiler instance has been deleted (ie: after tcc_delete).
Actually I strugled with the same problem and found a partial solution:
If you look up the code in libtcc.c, in function tcc_delete is the line
tcc_run_free(s1);
You have to outcomment this and it will not free the runtime memory; there you
can also see, what else get's freed.
But you can't free this later on, since s1 gets discarded, and if you dont save
it somewhere its lost.
Michael
--
______________________________________________________________
Aktuelle Lichtmaschinenkunst
http://mir52.wordpress.com
Glory be to thee Hong Kong
| [Prev in Thread] | Current Thread | [Next in Thread] |