germano carella via llvm-dev
2018-Sep-20 20:37 UTC
[llvm-dev] llvm and python bindings under windows
Hello everyone I am Germano, from Italy. Sorry to intruding, but I don't know who to ask anymore. I developed a small programming language, entirely written in Python. I state that I work under Windows, I'm using anaconda and Python 3.6. I wrote the lexical generator and the parser generator. Now I have to write a code generator and thought about using LLVM. It seems that the Uncio way to work with LLVM in Python is llvmlite, necessary to generate the code. Then I have to use LLC. exe and clang. EXE to compile the generated code into an executable. Since I would like to distribute this language, I want to know: I must include all the installation of LLVM, or can I use its libraries to generate the code and compile it in some way? Is there any other binding for Python that I can use? Thank you for your attention, Kind regards. Germano
mayuyu.io via llvm-dev
2018-Sep-24 14:00 UTC
[llvm-dev] llvm and python bindings under windows
You don’t have to use LLC and Clang as standalone tools. There are APIs for them. You can write Python Bindings around the native LLVM libraries to call them Zhang> 在 2018年9月20日,21:37,germano carella via llvm-dev <llvm-dev at lists.llvm.org> 写道: > > Hello everyone > I am Germano, from Italy. > Sorry to intruding, but I don't know who to ask anymore. > I developed a small programming language, entirely written in Python. > I state that I work under Windows, I'm using anaconda and Python 3.6. > I wrote the lexical generator and the parser generator. > Now I have to write a code generator and thought about using LLVM. > It seems that the Uncio way to work with LLVM in Python is llvmlite, necessary to generate the code. > Then I have to use LLC. exe and clang. EXE to compile the generated code into an executable. > Since I would like to distribute this language, I want to know: > I must include all the installation of LLVM, or can I use its libraries to generate the code and compile it in some way? > Is there any other binding for Python that I can use? > > Thank you for your attention, > Kind regards. > Germano > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Tim Northover via llvm-dev
2018-Sep-24 14:10 UTC
[llvm-dev] llvm and python bindings under windows
On Mon, 24 Sep 2018 at 15:00, mayuyu.io via llvm-dev <llvm-dev at lists.llvm.org> wrote:> You don’t have to use LLC and Clang as standalone tools. There are APIs for them. You can write Python Bindings around the native LLVM libraries to call themTo me it looked like llvmlite didn't have bindings for ahead-of-time compilation. It ought to be fairly easy to add them, but right now it might not exactly match Germano's use. Tim.