{"id":3050,"date":"2013-09-08T05:13:11","date_gmt":"2013-09-07T20:13:11","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=3050"},"modified":"2017-09-16T14:36:19","modified_gmt":"2017-09-16T05:36:19","slug":"8-3-1-%e3%83%9d%e3%83%bc%e3%82%bf%e3%83%96%e3%83%ab%e3%81%aaoffsetof%e3%81%a8sizeof%e3%81%ae%e5%ae%9f%e8%a3%85","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/3050","title":{"rendered":"8.3.1. \u30dd\u30fc\u30bf\u30d6\u30eb\u306aoffsetof\u3068sizeof\u306e\u5b9f\u88c5"},"content":{"rendered":"<p><ins datetime=\"2017-09-16T05:30:13+00:00\">\u521d\u51fa\u6642\u306b\u306f\u7b2c8\u7ae0\u3067\u3057\u305f\u304c\u73fe\u5728(2017\/09\/16\u6642\u70b9)\u3067\u306f\u539f\u6587\u306e\u307b\u3046\u3067\u65b0\u305f\u306b8\u7ae0\u30689\u7ae0\u304c\u8ffd\u52a0\u3055\u308c\u3001\u672c\u7ae0\u306f10\u7ae0\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u5185\u5bb9\u306f\u521d\u51fa\u6642\u306e\u307e\u307e\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u304c\u539f\u6587\u3078\u306e\u30ea\u30f3\u30af\u3060\u305110\u7ae0\u306e\u3082\u306e\u3092\u6307\u3059\u3088\u3046\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002<br \/>\n<\/ins><br \/>\n<a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c8\u7ae0 \u4e07\u83ef\u93e1: \u307e\u3068\u3081\u3068LLVM\u306e\u305d\u306e\u4ed6\u306e\u4fbf\u5229\u306a\u70b9<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl10.html#implementing-portable-offsetof-sizeof\" target=\"_blank\">\u7b2c3.1\u7bc0 \u30dd\u30fc\u30bf\u30d6\u30eb\u306aoffsetof\u3068sizeof\u306e\u5b9f\u88c5<\/a><\/p>\n<p>\u3082\u3057\u3001\u3042\u306a\u305f\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u201d\u30bf\u30fc\u30b2\u30c3\u30c8\u975e\u4f9d\u5b58\u201d\u306b\u4fdd\u3068\u3046\u3068\u3059\u308b\u5834\u5408\u3001\u3044\u304f\u3064\u304b\u306eLLVM\u306e\u578b\u306e\u30b5\u30a4\u30ba\u3084\u3001\u3044\u304f\u3064\u304b\u306eLLVM\u69cb\u9020\u4f53\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306b\u3064\u3044\u3066\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u3092\u884c\u3046\u95a2\u6570\u306b\u578b\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u4e0d\u5e78\u306a\u3053\u3068\u306b\u3001\u3053\u308c\u306f\u5b9f\u306b\u5e83\u7bc4\u56f2\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u95a2\u308f\u308b\u8a71\u3067\u3042\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u30b5\u30a4\u30ba\u306f\u660e\u3089\u304b\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u7279\u6709\u306e\u3082\u306e\u3067\u3042\u308b\u3002<br \/>\n\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u308c\u3092\u30dd\u30fc\u30bf\u30d6\u30eb\u306a\u65b9\u6cd5\u3067\u8a08\u7b97\u3059\u308b\u4e8b\u3092\u53ef\u80fd\u306b\u3059\u308b\u3001getelementptr\u547d\u4ee4\u306e\u8ce2\u3044\u4f7f\u3044\u65b9\u304c\u3042\u308b\u3002\uff08<a href=\"http:\/\/nondot.org\/sabre\/LLVMNotes\/SizeOf-OffsetOf-VariableSizedStructs.txt\" target=\"_blank\">http:\/\/nondot.org\/sabre\/LLVMNotes\/SizeOf-OffsetOf-VariableSizedStructs.txt<\/a>\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><ins datetime=\"2017-09-16T05:30:13+00:00\">\u521d\u51fa\u6642\u306b\u306f\u7b2c8\u7ae0\u3067\u3057\u305f\u304c\u73fe\u5728(2017\/09\/16\u6642\u70b9)\u3067\u306f\u539f\u6587\u306e\u307b\u3046\u3067\u65b0\u305f\u306b8\u7ae0\u30689\u7ae0\u304c\u8ffd\u52a0\u3055\u308c\u3001\u672c\u7ae0\u306f10\u7ae0\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u5185\u5bb9\u306f\u521d\u51fa\u6642\u306e\u307e\u307e\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u304c\u539f\u6587\u3078\u306e\u30ea\u30f3\u30af\u3060\u305110\u7ae0\u306e\u3082\u306e\u3092\u6307\u3059\u3088\u3046\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002<br \/>\n<\/ins><br \/>\n<a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c8\u7ae0 \u4e07\u83ef\u93e1: \u307e\u3068\u3081\u3068LLVM\u306e\u305d\u306e\u4ed6\u306e\u4fbf\u5229\u306a\u70b9<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl10.html#implementing-portable-offsetof-sizeof\" target=\"_blank\">\u7b2c3.1\u7bc0 \u30dd\u30fc\u30bf\u30d6\u30eb\u306aoffsetof\u3068sizeof\u306e\u5b9f\u88c5<\/a><\/p>\n<p>\u3082\u3057\u3001\u3042\u306a\u305f\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u201d\u30bf\u30fc\u30b2\u30c3\u30c8\u975e\u4f9d\u5b58\u201d\u306b\u4fdd\u3068\u3046\u3068\u3059\u308b\u5834\u5408\u3001\u3044\u304f\u3064\u304b\u306eLLVM\u306e\u578b\u306e\u30b5\u30a4\u30ba\u3084\u3001\u3044\u304f\u3064\u304b\u306eLLVM\u69cb\u9020\u4f53\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306b\u3064\u3044\u3066\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u3092\u884c\u3046\u95a2\u6570\u306b\u578b\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u4e0d\u5e78\u306a\u3053\u3068\u306b\u3001\u3053\u308c\u306f\u5b9f\u306b\u5e83\u7bc4\u56f2\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u95a2\u308f\u308b\u8a71\u3067\u3042\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u30b5\u30a4\u30ba\u306f\u660e\u3089\u304b\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u7279\u6709\u306e\u3082\u306e\u3067\u3042\u308b\u3002<br \/>\n\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u308c\u3092\u30dd\u30fc\u30bf\u30d6\u30eb\u306a\u65b9\u6cd5\u3067\u8a08\u7b97\u3059\u308b\u4e8b\u3092\u53ef\u80fd\u306b\u3059\u308b\u3001getelementptr\u547d\u4ee4\u306e\u8ce2\u3044\u4f7f\u3044\u65b9\u304c\u3042\u308b\u3002\uff08<a href=\"http:\/\/nondot.org\/sabre\/LLVMNotes\/SizeOf-OffsetOf-VariableSizedStructs.txt\" target=\"_blank\">http:\/\/nondot.org\/sabre\/LLVMNotes\/SizeOf-OffsetOf-VariableSizedStructs.txt<\/a>\uff09<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[466,467],"class_list":["post-3050","post","type-post","status-publish","format-standard","hentry","category-tech","tag-kaleidoscope","tag-llvm"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/3050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=3050"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/3050\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=3050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=3050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=3050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}