{"id":206,"date":"2009-08-04T00:01:33","date_gmt":"2009-08-04T08:01:33","guid":{"rendered":"http:\/\/www.pagetable.com\/?p=206"},"modified":"2009-08-04T00:01:33","modified_gmt":"2009-08-04T08:01:33","slug":"aggressive-tail-call-optimization","status":"publish","type":"post","link":"https:\/\/www.pagetable.com\/?p=206","title":{"rendered":"Aggressive Tail Call Optimization"},"content":{"rendered":"<p>In some i386\/x86_64 assembly code my coworker was working on, there was a macro like this:<\/p>\n<pre>\n#define ENDFUNC leave\n                ret\n<\/pre>\n<p>Having forgotten about the exact implementation of the macro, he then wrote a function that ended like this:<\/p>\n<pre>\n        leave\n        ENDFUNC\n<\/pre>\n<p>Now this obviously ended the function with<\/p>\n<pre>\n        leave\n        leave\n        ret\n<\/pre>\n<p>and he got very interesting results. What was happening?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some i386\/x86_64 assembly code my coworker was working on, there was a macro like this: #define ENDFUNC leave ret Having forgotten about the exact implementation of the macro, he then wrote a function that ended like this: leave ENDFUNC Now this obviously ended the function with leave leave ret and he got very interesting &#8230; <a title=\"Aggressive Tail Call Optimization\" class=\"read-more\" href=\"https:\/\/www.pagetable.com\/?p=206\" aria-label=\"Read more about Aggressive Tail Call Optimization\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,38],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry","category-puzzle","category-x86"],"_links":{"self":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=206"}],"version-history":[{"count":0,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}