<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wocota</author_name>
  <author_url>https://blog.hatena.ne.jp/wocota/</author_url>
  <blog_title>OSのようなもの</blog_title>
  <blog_url>https://wocota.hatenadiary.org/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>GCC</anon>
  </categories>
  <description>GCCや多くのコンパイラーは，C言語の標準(C99)にインライン関数が取り込まれるずっと前からインライン関数をサポートしていた。そのためかインライン関数の定義は様々で，同じ書式でも各コンパイラで挙動が異なる場合がある。 今回は，インライン関数の定義をまとめ。それぞれ出力されるアセンブラコードを比べてみる。 概要 先頭に inline という言葉を付けて関数を宣言すると，コンパイラーはそれをヒントにコードをインライン化――関数のコードを呼出し元に展開する。これにより，関数呼び出しのオーバーヘッドが取り除かれ実行が早くなる。inline はコンパイラに対するヒントであって指示ではないから，様々な理…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwocota.hatenadiary.org%2Fentry%2F20090219%2F1235058524&quot; title=&quot;C言語のインライン関数について - OSのようなもの&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>2009-02-19 00:48:44</published>
  <title>C言語のインライン関数について</title>
  <type>rich</type>
  <url>https://wocota.hatenadiary.org/entry/20090219/1235058524</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
