<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C 编译器 :: 标签 :: yafeng 的博客</title>
    <link>https://yafengabc.github.io/tags/c-%E7%BC%96%E8%AF%91%E5%99%A8/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/c-%E7%BC%96%E8%AF%91%E5%99%A8/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>第 0 章：为什么再写一个 C 编译器</title>
      <link>https://yafengabc.github.io/goc/00-%E4%B8%BA%E4%BB%80%E4%B9%88%E5%86%99goc/index.html</link>
      <pubDate>Tue, 06 Oct 2026 12:10:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/00-%E4%B8%BA%E4%BB%80%E4%B9%88%E5%86%99goc/index.html</guid>
      <description>编译器套娃已经很多了，为什么还要用 Go 写一个 C 编译器？goc 的答案是四条取舍：不依赖 gcc、不依赖 libc、不假设 CPU 行为、交付物只有一个文件。本文讲清这个定位怎么决定了整个项目形态。</description>
    </item>
    <item>
      <title>第 1 章：5 分钟跑起来</title>
      <link>https://yafengabc.github.io/goc/01-%E4%BA%94%E5%88%86%E9%92%9F%E4%B8%8A%E6%89%8B/index.html</link>
      <pubDate>Tue, 06 Oct 2026 12:20:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/01-%E4%BA%94%E5%88%86%E9%92%9F%E4%B8%8A%E6%89%8B/index.html</guid>
      <description>从零编译第一个 goc 程序：Windows 上装工具链、跑通 Hello World、输出汇编、交叉编译 Linux ELF，以及两个必踩的坑（-o 语义、printf 宽度）。goclib 已内嵌进二进制，编译器就是一个文件。</description>
    </item>
    <item>
      <title>第 2 章：写第一个 Windows GUI 程序</title>
      <link>https://yafengabc.github.io/goc/02-%E7%AC%AC%E4%B8%80%E4%B8%AAgui%E7%A8%8B%E5%BA%8F/index.html</link>
      <pubDate>Tue, 06 Oct 2026 12:30:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/02-%E7%AC%AC%E4%B8%80%E4%B8%AAgui%E7%A8%8B%E5%BA%8F/index.html</guid>
      <description>用 goc 写一个弹 MessageBox 的 Windows GUI 程序，编译出 37KB 的 exe，只依赖 kernel32 和 user32 两个 DLL——没有 msvcrt。附完整 API 说明与常见错误排查。</description>
    </item>
    <item>
      <title>goc32：TinyOS 用户程序的 C 编译器</title>
      <link>https://yafengabc.github.io/goc/goc32/index.html</link>
      <pubDate>Mon, 09 Nov 2026 10:00:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/goc32/index.html</guid>
      <description>goc32 是一个不链接 libLLVM 的 TinyOS 用户态 C 编译器，一条命令把 C 源码变成 LZ4TOS 用户程序。本小节包含串口上传教程和用户程序 API 参考。</description>
    </item>
    <item>
      <title>goc 专栏</title>
      <link>https://yafengabc.github.io/goc/index.html</link>
      <pubDate>Tue, 06 Oct 2026 12:00:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/index.html</guid>
      <description>用 Go 从零写一个不依赖 gcc、不依赖 libc的 C 编译器。本专栏记录 goc 的设计取舍、体积实测、项目状态与上手教程。</description>
    </item>
  </channel>
</rss>