我找到了这个项目:
https://github.com/go-llvm/llgo .
但最后一次提交是将近 4 年前,他们提到:
This project has moved to llvm.org. Any contributions or bug reports should be sent there. Please refer to the llgo readme for more information
那么现在的程序是不是不能用了?
另一个项目是:
https://go.googlesource.com/gollvm .
但根据他们的网站,它仍在开发中。但它是否足够稳定,现在可以使用,是否会进一步开发?
Gollvm is currently in development -- releases are not yet available for download. Instructions for building gollvm follow.
是否有任何其他项目或方法可以将 Go 编译为 LLVM IR,或者目前还不可能?
最佳答案
GOLLVM仍在维护中,它很稳定,最近一次提交是在八月份。因此,该项目并没有死。
但是,它目前仅针对 x64 Linux。因此,您的应用程序无法在 macOS 或 Windows 上运行。
关于go - 是否可以将 Go 程序编译为 LLVM IR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52302831/