[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tcc



So I've been playing with tcc (Tiny C Compiler
http://fabrice.bellard.free.fr/tcc/) a bit with the expectation of
replacing the fork/exec of gcc with a library call to the compiler which
compiles into the running image. However it does not appear to be ready
for embedded use yet. The released version compiles once only (which is
all that's needed for the standard executable), and with some coaxing I
got it to work two or three times, but then it dies from some cause I
haven't determined. Most of the state is still stored in global variables
instead of TCCState, and tcc_delete isn't actually freeing any of the
memory, and tcc_new isn't actually initializing all the globals it needs
to. The C parser seems to be good enough for GOO, however, as it did
manage to compile all of GOO staticly (but GOO then runs very very
slowly) as the optimizer isn't anything close to gcc -O2.

james