Hello, You wrote: >> .. . result that I get can not exec the .ll file by lli command
Go programs depend on the Go runtime and standard library -- you can't really do anything interesting in Go without involving these packages. Consider a toy program like this: https://play.golang.org/p/MAohLsrz7JQ When this Go program runs, the Go runtime does a lot of setup work (initializing the scheduler, the garbage collector, etc) before main.main is ever invoked. Then when main.main calls fmt.Println(), there is (again) a lot of runtime involvement needed to carry out the work of printing a message. When you run "lli" on just a single bitcode file generated from compiling a Go main package with llvm-goc, "lli" can't really do much with it since you aren't also handing off a copy of the go runtime. Folks have experimented in the past with hacking up the compiler and runtime to get it into a form where it will work with lli, but this is not a supported usage mode for Gollvm at the moment (a good deal more engineering work would be needed, due to the oddities of how "lli" works). Thanks, Than On Tue, Feb 4, 2020 at 8:21 AM <arss...@gmail.com> wrote: > Hello! > I am doing a project in which I need to generate LLVM IR file by use > gollvm . but the result that I get can not exec the .ll file by lli command > any suggestion > 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/7bbfcb8f-f488-445d-bd78-0c531cd42b1d%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/7bbfcb8f-f488-445d-bd78-0c531cd42b1d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CA%2BUr55Fr3bsDtCOw_YNsuWSo3g5x5%2Bf89FKPZ9HqQ3bcrNBtUw%40mail.gmail.com.