[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Get a token from char *
From: |
grischka |
Subject: |
Re: [Tinycc-devel] Get a token from char * |
Date: |
Tue, 08 Feb 2011 17:51:01 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Thomas Preud'homme wrote:
The scheme used in my patch is to only use the C token while compiling and
then linking against the asm label at link time.
But you want to convert the asm label into a token too (see topic
of the mail). Which made me wonder whether that is necessary if it
is never used as a token but only as the external linker symbol.
Basically everything happen
in external_sym and put_extern_sym2. There is just one line in external_sym to
register the association between asm token and C token, and then 3 lines added
in put_extern_sym2 to use the asm label if it exist. It may not be the cleaner
way to do it, but at least it's a very short patch.
Maybe you can pass the asm label as an extra parameter to put_extern_sym2
directly, like
put_extern_sym2(sym, NULL, 0, 0, 0, asm_label);
--- grischka