Is there anyway to use the assembler/compiler as a library

agolangf · · 327 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Ie like could I do smth like x64.emit(&#39;MOV&#39;) or asm.emit(instr.mov).</p> <hr/>**评论:**<br/><br/>kokster_: <pre><p>You can directly run assembly in Golang. It requires some type magic, but it can be achieved. I&#39;ll be writing about type magic in Golang in my blog tomorrow - <a href="https://medium.com/kokster/tagged/golang" rel="nofollow">https://medium.com/kokster/tagged/golang</a></p> <p>Following that I&#39;ll be writing about JIT in Golang - which runs assembly directly. If you just hang out on this subreddit and you&#39;ll see it in a few days.</p></pre>vopi181: <pre><p>Oh dang I was gonna write a JIT in golang also! my plan was gonna be to wrap various os calls(virtualalloc/vmprotect(?)) and then use that abstraction layer in go. </p></pre>kokster_: <pre><p>That&#39;s really interesting! I&#39;d love to learn more about your design for the JIT, and share mine with you. I&#39;ll DM you</p></pre>kd7nyq: <pre><p>Please don&#39;t forget to post to reddit! This is a really exciting topic. </p></pre>kokster_: <pre><p>Of course!</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

327 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传