Is it possible to create full-function TCCState structure? For holding all
data needed for STATE. W/o that only ONE TCCState structure can be active at
the same time. For example, source of "tcc_delete()":
void tcc_delete(TCCState *s1)
{
int i, n;
/* free -D defines */
free_defines(NULL);
/* free tokens */
n = tok_ident - TOK_IDENT;
for(i = 0; i < n; i++)
tcc_free(table_ident[i]);
tcc_free(table_ident);
/* free all sections */
free_section(symtab_section->hash);
...
Or divide STATE into 2 STATEs: one for compiling, one for loading/linking
Anton.
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel