Re:New SSA Back End for the Go Compiler
by jsd1982 on Tuesday February 24, 2015 @02:58PM
(#9103094)
LLVM and its tools are implemented in C++. The Go team just underwent a large effort to remove their dependency on C code. A reasonable assertion can be made that given this C code removal, a large and complex C++ dependency like LLVM is unlikely to be in their sights for inclusion into the compiler. Perhaps this wouldn't be an /entirely/ unreasonable to do; I can imagine a `cgo` binding to LLVM existing for this purpose. Speaking of which, I wonder what the fate of `cgo` is with this compiler code migration from C to Go.
[ Parent
| on HN ]
Re:New SSA Back End for the Go Compiler
by andrewchambers on Tuesday February 24, 2015 @04:54PM
(#9103801)
LLVM already has official go bindings in the main repo, also, the llgo go compiler uses these bindings.
Unfortunately building it all was a pain for me, and the resulting binary was 80 megs which seemed a bit ridiculous (Go had to statically link all of llvm into one monolith).