{"type":"rich","author_url":"https://blog.hatena.ne.jp/pyopyopyo/","blog_title":"pyopyopyo - Linux\u3068\u304b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u899a\u3048\u66f8\u304d - ","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyopyopyo.hatenablog.com%2Fentry%2F20130716%2Fp1\" title=\" dereferencing type-punned pointer will break strict-aliasing - pyopyopyo - Linux\u3068\u304b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u899a\u3048\u66f8\u304d - \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_name":"Hatena Blog","categories":["c/c++","macro"],"description":"dereferencing type-punned pointer will break strict-aliasing \u306e\u8b66\u544a\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5\uff0eC/C++\u3067\u306f\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306aType-punned pointer\u3092\u4f7f\u3046\u30b3\u30fc\u30c9\u306f\uff0c\u53b3\u5bc6\u306b\u306f\u52d5\u4f5c\u304c\u4fdd\u8a3c\u3067\u304d\u306a\u3044\uff0e float f = 123; uint32_t u = *(uint32_t*)&f; \u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306f\uff0c\u4f8b\u3048\u3070 GCC\u3067 \"-O3 -Wall\"\u306e\u3088\u3046\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068 dereferencing type-punned pointer will break strict-aliasing \u3068\u3044\u3046\u8b66\u544a\u304c\u51fa\u308b\uff0e\u7406\u7531\u306f\uff0c\u4ee5\u4e0b\u2026","blog_url":"https://pyopyopyo.hatenablog.com/","width":"100%","author_name":"pyopyopyo","image_url":null,"title":" dereferencing type-punned pointer will break strict-aliasing","published":"2013-07-16 00:00:00","url":"https://pyopyopyo.hatenablog.com/entry/20130716/p1"}