4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>$ go build main.go
</span></span><span style="display:flex;"><span>$ ls -sh main
</span></span><span style="display:flex;"><span>  1.9M main
</span></span></code></pre></div><p>默认编译完成的可执行文件大小是 1.9M。</p>
<h2 id="消除符号表">
  消除符号表
  <a class="anchor" href="#%e6%b6%88%e9%99%a4%e7%ac%a6%e5%8f%b7%e8%a1%a8">#</a>
</h2>
<p>默认编译完成的可执行文件会带有符