<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yshl</author_name>
  <author_url>https://blog.hatena.ne.jp/yshl/</author_url>
  <blog_title>週1でも日記</blog_title>
  <blog_url>https://yshl.hatenadiary.com/</blog_url>
  <categories>
    <anon>PostScript</anon>
  </categories>
  <description>末尾再帰最適化をC/C++上で検知してみたい - higepon blog はじめてのにき(2007-08-05) の PostScript 版 http://www.adobe.com/products/postscript/pdfs/PLRM.pdf の 3.5.5 章によると PostScript は末尾再帰を最適化して execution stack があふれないようにするそうな。 PostScript には countexecstack という手続きがあるのでそれを使って確かめてみる。f は末尾再帰で g は末尾再帰じゃない手続き。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyshl.hatenadiary.com%2Fentry%2F20070805%2F1186307114&quot; title=&quot;PostScript のコードが末尾再帰が最適化がされているか処理系で動くコードから判定できるか - 週1でも日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-08-05 18:45:14</published>
  <title>PostScript のコードが末尾再帰が最適化がされているか処理系で動くコードから判定できるか</title>
  <type>rich</type>
  <url>https://yshl.hatenadiary.com/entry/20070805/1186307114</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
