<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n7shi</author_name>
  <author_url>https://blog.hatena.ne.jp/n7shi/</author_url>
  <blog_title>七誌の開発日記</blog_title>
  <blog_url>https://7shi.hateblo.jp/</blog_url>
  <categories>
    <anon>C言語</anon>
    <anon>C++</anon>
  </categories>
  <description>第6回 コンパイラ実装会で出た話題です。関数のサイズを取ろうとしたら1になりました。なぜ？ test.c #include &lt;stdio.h&gt; int main(void) { printf(&quot;%d\n&quot;, sizeof(putchar)); return 0; } 実行結果 $ gcc test.c $ ./a.exe 1int aへのポインタが&amp;aであるように、putcharへのポインタは&amp;putcharです。ANSI Cでは関数ポインタの代入や呼び出しで&amp;や*が省略できますが、sizeof()では省略できません。本来sizeof(関数)は関数の中にあるバイナリのサイズになるはずですが、取…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F7shi.hateblo.jp%2Fentry%2F2012%2F06%2F11%2F000619&quot; title=&quot;関数のサイズ - 七誌の開発日記&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-06-11 00:06:19</published>
  <title>関数のサイズ</title>
  <type>rich</type>
  <url>https://7shi.hateblo.jp/entry/2012/06/11/000619</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
