Hi,

I get the .ll files from gollvm, and I know there is no way to get 
executable file by lli, but whether there are other ways can do this?

here is the simple go code, *hello.go*



*package mainimport "fmt"func main() { *
*        fmt.Println("hello world") *
*}*

Using commands as following, we can get .ll file

*llvm-goc -S -emit-llvm hello.go -o hello.ll*

and I try *llvm-goc hello.ll -o hello* , getting error

*/usr/bin/ld.gold:错误: hello.ll:1:14: invalid character*
*/usr/bin/ld.gold:错误: hello.ll:1:14: syntax error, unexpected $end*
*/usr/bin/ld.gold:错误: hello.ll: not an object or archive*

Best wishes

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4e480562-549c-496b-961c-589b7ee22b8fn%40googlegroups.com.

Reply via email to