python compiler:使用LLVM的Python 3实现 源码

qqconverse52377 15 0 ZIP 2021-05-01 02:05:40

Python编译器 使用LLVM的Python 3实现。 制作说明 该项目是用编写的,并且依赖于和 。 编译文件test.py : 苹果系统 使用安装Rust。 LLVM和Boehm GC可以使用安装: brew install llvm@11 libgc 构建编译器: LLVM_SYS_110_PREFIX= " $( brew --prefix ) /opt/llvm@11/ " cargo build --release 构建最终的可执行文件: target/release/python --emit=bc test.py $( brew --prefix ) /opt/llvm@11/bin/llc -filetype=obj test.bc clang test.o -o test -Ltarget/release/ -lpython_core -lgc 执照 麻省理工

用户评论
请输入评论内容
评分:
暂无评论