<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toshi_hirasawa</author_name>
  <author_url>https://blog.hatena.ne.jp/toshi_hirasawa/</author_url>
  <blog_title>toshi_hirasawaの日記</blog_title>
  <blog_url>https://toshi-hirasawa.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>x86版gccの場合、 関数からのリターンの際、 リターン時のEAXレジスタが関数の戻り値になるので、 次のようにスタックが使うアドレスを直接とりだすことができる [hirasawa@aspire-white gcc-Programming-Kobo]$ cat ./stack.c #include &lt;stdio.h&gt; asm(&quot;stack: &quot;); asm(&quot; movl %esp ,%eax &quot;); asm(&quot; ret &quot;); unsigned int stack(void); int main() { printf(&quot;ESP address is %p\n&quot;, &amp;stack); print…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoshi-hirasawa.hatenadiary.org%2Fentry%2F20120212%2F1329172828&quot; title=&quot;スタック領域(スタックが使うアドレス)の再確認 - toshi_hirasawaの日記&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>2012-02-12 07:40:28</published>
  <title>スタック領域(スタックが使うアドレス)の再確認</title>
  <type>rich</type>
  <url>https://toshi-hirasawa.hatenadiary.org/entry/20120212/1329172828</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
