<?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>http://yafengabc.github.io/tags/c-%E7%BC%96%E8%AF%91%E5%99%A8/index.html</link><description/><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 06 Oct 2026 14:32:16 +0800</lastBuildDate><atom:link href="http://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>http://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>http://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>http://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>http://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，以及三个必踩的坑（goclib 路径、-o 语义、printf 宽度）。</description></item><item><title>第 2 章：写第一个 Windows GUI 程序</title><link>http://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>http://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>goc 专栏</title><link>http://yafengabc.github.io/goc/index.html</link><pubDate>Tue, 06 Oct 2026 12:00:00 +0800</pubDate><guid>http://yafengabc.github.io/goc/index.html</guid><description>用 Go 从零写一个不依赖 gcc、不依赖 libc的 C 编译器。本专栏记录 goc 的设计取舍、体积实测、项目状态与上手教程。</description></item></channel></rss>