<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>laysakura</author_name>
  <author_url>https://blog.hatena.ne.jp/laysakura/</author_url>
  <blog_title>俺とお前とlaysakura</blog_title>
  <blog_url>https://laysakura.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>C言語におけるデータのアラインメントについての小ネタです． アラインメント自体については， データ型のアラインメントとは何か，なぜ必要なのか？ にとても詳しいです． 問題設定 4バイトの変数を16個の配列で確保するとします． int a[16]; もし各レベルキャッシュのキャッシュラインサイズが64バイトなら， この配列aを1ラインに収めることができるはずです． 事例1: 配列サイズを定数で指定 __atribute__ ((aligned(64))) を使って，アラインメントを64バイト境界に指定してみましょう． alignment_stack_const.c #include &lt;stdio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flaysakura.hateblo.jp%2Fentry%2F20111108%2F1320738041&quot; title=&quot; gccで指定できるアラインメントのサイズには限界がある - 俺とお前とlaysakura&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>2011-11-08 16:40:41</published>
  <title> gccで指定できるアラインメントのサイズには限界がある</title>
  <type>rich</type>
  <url>https://laysakura.hateblo.jp/entry/20111108/1320738041</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
