New in CVS : ------------------------- * Enable multiple states ------------------------- So now you can create more than one state in libtcc (suggested by egodust).
Note however that once a new state is created, the only valid operations with an "old" state are: - running code from it - delete it Also fixes a minor memory leak, so TCC finishes now cleanly with 0 bytes in use (okay, except on errors) If you want to check, configure with memory debugging ./configure --extra-cflags="-Os -DMEM_DEBUG" and in your client code have printf("memory: %d - %d\n", mem_cur_size, mem_max_size); where 'mem_cur_size' should be always 0 in the end. ----------------------------- * fix shared library creation ----------------------------- This fixes an issue with relocation entries, reported by Olaf Dietrich. Creating shared libraries with TCC should now work well: tcc -shared foo.c -o foo.so ----------------------------- * fix .stabstr linkage ----------------------------- This fixes the debug information when linking multiple objects: tcc -g -c foo.c tcc -g -c bar.c tcc -g foo.o bar.o -o foobar For more useful backtraces and single stepping with bigger TCC-generated binaries, including function symbols and line numbers. ----------------------- * fix script arguments ----------------------- This should fix the latest issue with options in C scripts as reported by Pedro A ARANDA. #!/usr/bin/tcc -run -DTEST -ldl ... Some details: For scripts, the shell passes exactly three arguments to the "interpreter", like if you typed: $ /usr/bin/tcc "-run -DTEST -ldl" script.c however tcc splits those after -run on its own. This is why as an exception from the commandline syntax, in scripts -run must come first. The script itself gets only argv[0] "script.c" ----------------------- that's it so far --- grischka _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel