{"id":2947,"date":"2013-08-23T19:59:53","date_gmt":"2013-08-23T10:59:53","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2947"},"modified":"2017-09-16T14:13:13","modified_gmt":"2017-09-16T05:13:13","slug":"3-6-%e5%85%a8%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2947","title":{"rendered":"3.6. \u5168\u30b3\u30fc\u30c9"},"content":{"rendered":"<p><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\u7b2c3\u7ae0 \u4e07\u83ef\u93e1: LLVM IR\u30b3\u30fc\u30c9\u306e\u751f\u6210<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl03.html#full-code-listing\" target=\"_blank\">\u7b2c6\u7bc0 \u5168\u30b3\u30fc\u30c9<\/a><\/p>\n<p>LLVM\u306e\u30b3\u30fc\u30c9\u751f\u6210\u6a5f\u306b\u3088\u3063\u3066\u6539\u826f\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306e\u5168\u4f53\u3092\u793a\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306fLLVM\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u306b\u5bfe\u3059\u308b\u30ea\u30f3\u30af\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002<br \/>\n\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001Makefile\u3084\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u3069\u3093\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3079\u304d\u304b\u77e5\u308b\u305f\u3081\u306b<a href=\"http:\/\/llvm.org\/docs\/CommandGuide\/llvm-config.html\" target=\"_blank\">llvm-config\u30c4\u30fc\u30eb<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \u30b3\u30f3\u30d1\u30a4\u30eb\r\nclang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy\r\n# \u5b9f\u884c\r\n.\/toy<\/pre>\n<p>\u4ee5\u4e0b\u30b3\u30fc\u30c9\u3002<br \/>\n<em>\u8a33\u6ce8: <a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl03.html#full-code-listing\" target=\"_blank\">\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u539f\u6587\u3092\u53c2\u7167\u3055\u308c\u305f\u3057\u3002<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p><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\u7b2c3\u7ae0 \u4e07\u83ef\u93e1: LLVM IR\u30b3\u30fc\u30c9\u306e\u751f\u6210<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl03.html#full-code-listing\" target=\"_blank\">\u7b2c6\u7bc0 \u5168\u30b3\u30fc\u30c9<\/a><\/p>\n<p>LLVM\u306e\u30b3\u30fc\u30c9\u751f\u6210\u6a5f\u306b\u3088\u3063\u3066\u6539\u826f\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306e\u5168\u4f53\u3092\u793a\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306fLLVM\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u306b\u5bfe\u3059\u308b\u30ea\u30f3\u30af\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002<br \/>\n\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001Makefile\u3084\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u3069\u3093\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3079\u304d\u304b\u77e5\u308b\u305f\u3081\u306b<a href=\"http:\/\/llvm.org\/docs\/CommandGuide\/llvm-config.html\" target=\"_blank\">llvm-config\u30c4\u30fc\u30eb<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \u30b3\u30f3\u30d1\u30a4\u30eb\r\nclang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy\r\n# \u5b9f\u884c\r\n.\/toy<\/pre>\n<p>\u4ee5\u4e0b\u30b3\u30fc\u30c9\u3002<br \/>\n<em>\u8a33\u6ce8: <a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl03.html#full-code-listing\" target=\"_blank\">\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u539f\u6587\u3092\u53c2\u7167\u3055\u308c\u305f\u3057\u3002<\/a><\/em><\/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-2947","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\/2947","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=2947"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2947\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}