<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>尾递归优化 on Answer</title>
    <link>https://answer.freetools.me/tags/%E5%B0%BE%E9%80%92%E5%BD%92%E4%BC%98%E5%8C%96/</link>
    <description>Recent content in 尾递归优化 on Answer</description>
    <generator>Hugo -- 0.152.2</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 07 Mar 2026 15:55:46 +0800</lastBuildDate>
    <atom:link href="https://answer.freetools.me/tags/%E5%B0%BE%E9%80%92%E5%BD%92%E4%BC%98%E5%8C%96/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>递归调用为何会溢出？从栈帧结构到尾递归优化的完整技术解析</title>
      <link>https://answer.freetools.me/%E9%80%92%E5%BD%92%E8%B0%83%E7%94%A8%E4%B8%BA%E4%BD%95%E4%BC%9A%E6%BA%A2%E5%87%BA%E4%BB%8E%E6%A0%88%E5%B8%A7%E7%BB%93%E6%9E%84%E5%88%B0%E5%B0%BE%E9%80%92%E5%BD%92%E4%BC%98%E5%8C%96%E7%9A%84%E5%AE%8C%E6%95%B4%E6%8A%80%E6%9C%AF%E8%A7%A3%E6%9E%90/</link>
      <pubDate>Sat, 07 Mar 2026 15:55:46 +0800</pubDate>
      <guid>https://answer.freetools.me/%E9%80%92%E5%BD%92%E8%B0%83%E7%94%A8%E4%B8%BA%E4%BD%95%E4%BC%9A%E6%BA%A2%E5%87%BA%E4%BB%8E%E6%A0%88%E5%B8%A7%E7%BB%93%E6%9E%84%E5%88%B0%E5%B0%BE%E9%80%92%E5%BD%92%E4%BC%98%E5%8C%96%E7%9A%84%E5%AE%8C%E6%95%B4%E6%8A%80%E6%9C%AF%E8%A7%A3%E6%9E%90/</guid>
      <description>深入剖析递归调用栈溢出的根本原因，从x86/x64栈帧结构、函数调用约定，到尾递归优化(TCO)的原理与实现。对比Scheme、Python、JavaScript、Go、Rust等语言对尾递归的不同处理方式，揭示为什么有些语言能无限递归而有些语言会栈溢出，以及在TCO不可用时的工程解决方案。</description>
    </item>
  </channel>
</rss>
