<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gocl :: 标签 :: yafeng 的博客</title>
    <link>https://yafengabc.github.io/tags/gocl/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 07 Oct 2026 03:00:00 +0800</lastBuildDate>
    <atom:link href="https://yafengabc.github.io/tags/gocl/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>开发笔记：gocl 变参窄整型丢符号性</title>
      <link>https://yafengabc.github.io/goc/devnotes/01-%E5%8F%98%E5%8F%82%E7%AA%84%E6%95%B4%E5%9E%8B%E4%B8%A2%E7%AC%A6%E5%8F%B7%E6%80%A7/index.html</link>
      <pubDate>Tue, 06 Oct 2026 14:30:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/devnotes/01-%E5%8F%98%E5%8F%82%E7%AA%84%E6%95%B4%E5%9E%8B%E4%B8%A2%E7%AC%A6%E5%8F%B7%E6%80%A7/index.html</guid>
      <description>gocl（LLVM 后端）把所有经变参传递的 32 位整型的符号性丢掉。本文记录从「误诊为有符号除法」到「定位为变参8 字节槽未填满」的完整排查过程、根因、修复，以及两次误诊里学到的东西。</description>
    </item>
    <item>
      <title>开发笔记：gocl（LLVM 后端）踩过的坑</title>
      <link>https://yafengabc.github.io/goc/devnotes/04-gocl-llvm%E5%90%8E%E7%AB%AF%E8%B8%A9%E8%BF%87%E7%9A%84%E5%9D%91/index.html</link>
      <pubDate>Wed, 07 Oct 2026 01:20:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/devnotes/04-gocl-llvm%E5%90%8E%E7%AB%AF%E8%B8%A9%E8%BF%87%E7%9A%84%E5%9D%91/index.html</guid>
      <description>把 goc 的 C 代码交给 LLVM 编译、再由自研链接器合成 exe，这条路上踩过的坑：libLLVM 的 FFI 约定、LLVM IR 的畸形输出、COFF 重定位丢失 addend 导致控制台全哑、printf 特化的架构缺口、PE 段级文件对齐、TLS 访问被当成 extern 全局、以及 AT&amp;T 前端的操作数方向不能一律翻转。</description>
    </item>
    <item>
      <title>开发笔记：gocl 通用化与 Linux ELF 填坑</title>
      <link>https://yafengabc.github.io/goc/devnotes/05-gocl%E9%80%9A%E7%94%A8%E5%8C%96%E4%B8%8Elinux-elf%E8%B8%A9%E5%9D%91/index.html</link>
      <pubDate>Wed, 07 Oct 2026 03:00:00 +0800</pubDate>
      <guid>https://yafengabc.github.io/goc/devnotes/05-gocl%E9%80%9A%E7%94%A8%E5%8C%96%E4%B8%8Elinux-elf%E8%B8%A9%E5%9D%91/index.html</guid>
      <description>记录 gocl 从「连 goclib 都编不过」到「ls 在 Windows PE 与 Linux ELF 输出逐字节一致」这一轮的 13 个坑：__goc__ 宏未注册、陈旧构建产物遮蔽、链接期 syscall 桩第 4 参须走 r10、__goclib_brk identity 宏导致 malloc 段错误、整数提升缺失、switch break 跳错层、member 数组不衰变、exprType 库函数类型缺失、printf 单字符折成 fputc 链接失败，以及跨平台一致性与验证基础设施的坑。</description>
    </item>
  </channel>
</rss>