<ul>
<li>How stable is it relative to goc (meaning, will your average golang program compile properly in go-llvm)?</li>
<li>Does it generally produce faster executables?</li>
</ul>
<hr/>**评论:**<br/><br/>mewkiz: <pre><p>Similarly, it would be interesting with a comparison of gollvm <a href="https://go.googlesource.com/gollvm/" rel="nofollow">1</a> and go-llvm <a href="http://llvm.org/svn/llvm-project/llgo/trunk/README.TXT" rel="nofollow">2</a>.</p></pre>demonshreder: <pre><p>Was getting worried go-llvm has died. Nice to see gollvm. </p></pre>demonshreder: <pre><p>The gofrontend apparently still has GC issues as said in README here (<a href="https://github.com/golang/gofrontend/tree/master/go" rel="nofollow">https://github.com/golang/gofrontend/tree/master/go</a>). </p>
<p>I haven't used llvm based Go but the other working compiler is gccgo:</p>
<p>Based on this quite simplistic benchmark (<a href="https://github.com/slimsag/cgo-batching/blob/master/batched.go" rel="nofollow">https://github.com/slimsag/cgo-batching/blob/master/batched.go</a>), gccgo (v1.8 from GCC7) is 6 times slower than gc (v1.9) in executing Go code but is twice as fast in executing C code (cuz GCC).</p>
<p>Edit: During my benchmark, gccgo didn't compile with ./vendor present.</p></pre>allowthere: <pre><blockquote>
<p>gofrontend</p>
</blockquote>
<p>What's that?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传