当前位置: 首页 > 工具软件 > tinyscript > 使用案例 >

tinycc - 笔记

怀飞扬
2023-12-01

1. Tiny C Compiler 官网

https://bellard.org/tcc/

1.1 git

https://github.com/TinyCC/tinycc

1.2 编译

1.2.1 linux

tar  xvf  tcc-0.9.26.tar.bz2

则生成一个子目录 tcc-0.9.26,进入目录,编译它

cd tcc-0.9.26

./configure  --disable-static

make

make install

mkdir -p "/usr/local/bin" && install -m755  tcc "/usr/local/bin"
mkdir -p "/usr/local/lib/tcc" && install -m644 libtcc1.a "/usr/local/lib/tcc"
mkdir -p "/usr/local/lib/tcc/include" && install -m644 ./include/*.h ./tcclib.h "/usr/local/lib/tcc/include"
mkdir -p "/usr/local/lib" && install -m644 libtcc.a "/usr/local/lib"
mkdir -p "/usr/local/incl

 类似资料: