<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>FromNand</author_name>
  <author_url>https://blog.hatena.ne.jp/FromNand/</author_url>
  <blog_title>FromNandの日記</blog_title>
  <blog_url>https://fromnand.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>アライメントの勉強をしていて、気になったので実験してみた。 この記事の内容は、下の記事からほとんど抜粋してまとめたもの。めちゃくちゃいい記事だった。 でも、写しているので(僕が)カッコ悪い。 データ型のアラインメントとは何か，なぜ必要なのか？ まず、アライメントとはCPUのメモリにおける制約である。 アライメントに従わないデータにCPUがアクセスする際には、幾分かのオーバーヘッドが発生する。 アライメントを跨ぐデータを読む際には二度メモリにアクセスせねばならんし、読む際なんかは四度もアクセスしないといけない。(かもしれない。) アライメントを揃えなかったことによって、キャッシュラインをまたいだ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffromnand.hatenadiary.jp%2Fentry%2F2020%2F04%2F17%2F212243&quot; title=&quot;【C言語】アライメントについて【便利なマクロあり！】 - FromNandの日記&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>2020-04-17 21:22:43</published>
  <title>【C言語】アライメントについて【便利なマクロあり！】</title>
  <type>rich</type>
  <url>https://fromnand.hatenadiary.jp/entry/2020/04/17/212243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
