我正在尝试集成Visual C++ 2012和TCC,比如将一个C函数(作为字符串)发送到tcc编译器(libtcc.dll)中。我使用TCC发行版中的libtcc_test.c文件作为我的Win32 main()函数。any compilation */
if (tcc_compile_string(s, my_programYou may also open a dll
对于我目前正在工作的项目来说,性能并不是一个真正的问题,但文件大小是一个真正的问题,这使得TCC非常理想。我使用Autotools作为构建管理器,我认为使用TCC就像使用./configure CC=tcc一样简单。
但是,这将返回checking whether the C compiler works... no。有没有办法让Autotools使用TCC?
据我所知,这应该是可能的,但当我运行make时,我得到了以下错误:gcc -o tcctcc.c -DTCC_TARGET_I386 -O2 -g -Wall -fno-strict-aliasing=2 -march=i386 -falign-functions=0 -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 -lm -ldl
tcc.c:1: error: CPU you selected does not support x86-64 instruc