<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>OS</anon>
  </categories>
  <description>p. 89 の「ポインタとアセンブリ言語」についてやはり少し見ておく。 [foo.cpp] #include &lt;cstdint&gt; void foo() { int i = 42; int* p = &amp;i; int r1 = *p; *p = 1; int r2 = i; uintptr_t addr = reinterpret_cast&lt;uintptr_t&gt;(p); int* q = reinterpret_cast&lt;int*&gt;(addr); } を使って、 clang++ -O0 -S -o foo.s foo.cpp して内容を見てみる。（g++ だとまた微妙に違ったので今回はなかったこと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F05%2F17%2F010550&quot; title=&quot;みかん日記 (6) - らんだむな記憶&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>2021-05-17 01:05:50</published>
  <title>みかん日記 (6)</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2021/05/17/010550</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
