mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
72729d8e36
This allows creation of TCCStates and operation with API calls independently from each other, even from threads. Frontend (option parsing/libtcc.c) and backend (linker/tccelf.c) now depend only on the TCCState (s1) argument. Compilation per se (tccpp.c, tccgen.c) is still using globals for convenience. There is only one entry point to this section which is tcc_compile() which is protected by a semaphore. There are some hacks involved to avoid too many changes, as well as some changes in order to avoid too many hacks ;) The test libtcc_test_mt.c shows the feature. Except this new file the patch adds 87 lines overall.
59 lines
649 B
Plaintext
59 lines
649 B
Plaintext
*~
|
|
\#*
|
|
.#*
|
|
*.o
|
|
*.a
|
|
*.exe
|
|
*.dll
|
|
*.obj
|
|
*.pdb
|
|
*.lib
|
|
*.exp
|
|
*.log
|
|
*.bz2
|
|
*.zip
|
|
.gdb_history
|
|
a.out
|
|
tcc_g
|
|
tcc
|
|
*-tcc
|
|
libtcc*.def
|
|
|
|
config*.h
|
|
config*.mak
|
|
config.texi
|
|
conftest*
|
|
tags
|
|
TAGS
|
|
tcc.1
|
|
tcc.pod
|
|
tcc-doc.html
|
|
tcc-doc.info
|
|
|
|
win32/doc
|
|
win32/libtcc
|
|
win32/lib/32
|
|
win32/lib/64
|
|
win32/include/float.h
|
|
win32/include/stdarg.h
|
|
win32/include/stdbool.h
|
|
win32/include/stddef.h
|
|
win32/include/varargs.h
|
|
win32/include/tcclib.h
|
|
|
|
tests/tcctest[1234]
|
|
tests/tcctest.gcc
|
|
tests/*.out*
|
|
tests/*.ref
|
|
tests/*.txt
|
|
tests/*.gcc
|
|
tests/*-cc*
|
|
tests/*-tcc*
|
|
tests/libtcc_test
|
|
tests/libtcc_test_mt
|
|
tests/asm-c-connect
|
|
tests/asm-c-connect-sep
|
|
tests/vla_test
|
|
tests/hello
|
|
tests/tests2/fred.txt
|