<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>体积优化 :: 标签 :: yafeng 的博客</title>
    <link>https://yafengabc.github.io/tags/%E4%BD%93%E7%A7%AF%E4%BC%98%E5%8C%96/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 10 Nov 2026 13:20:30 +0800</lastBuildDate>
    <atom:link href="https://yafengabc.github.io/tags/%E4%BD%93%E7%A7%AF%E4%BC%98%E5%8C%96/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>第 3 章：体积实测——goc、LLVM 后端、gcc 三方对照</title>
      <link>https://yafengabc.github.io/goc/03-%E4%BD%93%E7%A7%AF%E5%AE%9E%E6%B5%8B/index.html</link>
      <pubDate>Tue, 06 Oct 2026 12:40:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/03-%E4%BD%93%E7%A7%AF%E5%AE%9E%E6%B5%8B/index.html</guid>
      <description>全部自己跑出来的数字：Hello World 的 print 版 2048 字节、printf 版 6656 字节，gcc 是 38989 字节。附带发现 LLVM 后端反而更小，以及一套验证第二后端正确性的办法。</description>
    </item>
    <item>
      <title>用 MinGW64 裁剪构建 libLLVM-23.dll：109MB 压到 10.9MB 的完整实录</title>
      <link>https://yafengabc.github.io/programming-misc/llvm-minimal-build/index.html</link>
      <pubDate>Tue, 06 Oct 2026 22:17:48 +0800</pubDate>
      <guid>https://yafengabc.github.io/programming-misc/llvm-minimal-build/index.html</guid>
      <description>在 MSYS2 MinGW64 下把 LLVM 23.1.2 裁剪成一个只保留 X86 后端、读 IR→优化→输出 ELF/COFF/ASM 的 libLLVM-23.dll：静态运行时、仅依赖 7 个系统 DLL、只导出 1093 个 C 符号，体积从 109.8MB 一路压到 10.9MB。记录 PE 导出上限、-Os 被覆盖、whole-archive 抵消 gc、组件级裁剪等全部踩坑。</description>
    </item>
  </channel>
</rss>