{"id":1548,"date":"2012-01-18T07:06:36","date_gmt":"2012-01-17T22:06:36","guid":{"rendered":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/?p=1548"},"modified":"2012-01-18T07:06:36","modified_gmt":"2012-01-17T22:06:36","slug":"gcc-%e3%81%a8-clang","status":"publish","type":"post","link":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/2012\/1548","title":{"rendered":"gcc \u3068 clang"},"content":{"rendered":"<p>MacBook Pro \u3092\u8cb7\u3044\u66ff\u3048\u3001 CPU \u304c\u5f37\u5316\u3055\u308c\u305f\u306e\u3067\u697d\u3057\u304f\u306a\u3063\u3066\u3044\u308d\u3044\u308d\u904a\u3093\u3067\u3044\u307e\u3059\u3002\u3067\u3001 twitter \u3092\u773a\u3081\u3066\u3044\u305f\u3089 llvm \u306a\u3093\u3066\u5358\u8a9e\u304c\u4e26\u3093\u3067\u3044\u3066\u3001\u3075\u3068 llvm-gcc \u3068 Clang \u3067\u306f\u3069\u3093\u306a\u9055\u3044\u304c\u3042\u308b\u3093\u3060\u308d\u3046\u3001\u3068\u601d\u3063\u3066 Emacs 23 + inline patch \u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002 <a href=\"http:\/\/sourceforge.jp\/projects\/macemacsjp\/svn\/view\/inline_patch\/trunk\/?root=macemacsjp\">inline patch<\/a> \u3092\u5f53\u3066\u305f Emacs 23 \u306f Clang \u3067\u306f\u30d3\u30eb\u30c9\u3067\u304d\u306a\u3044\u306e\u3067<a href=\"http:\/\/borg4.vdomains.jp\/~goro\/tmp\/emacs_inline_clang.patch\">\u3053\u3093\u306a\u30d1\u30c3\u30c1<\/a>\u3092\u3042\u3066\u308b\u5fc5\u8981\u304c\u3042\u308b<span style=\"color: #999999;\">(\u610f\u5473\u306f\u308f\u304b\u3089\u3093\u304c\u30a8\u30e9\u30fc\u306f\u56de\u907f\u3067\u304d\u3066\u308b)<\/span>\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u305d\u306e\u72b6\u614b\u3067\u5b9f\u9a13\u3067\u3059\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u672c\u683c\u7684\u306b Clang \u3092\u4f7f\u3046\u306e\u306f\u9762\u5012\u3063\u307d\u3044\u6c17\u304c\u3059\u308b\u306e\u3067 CC=gcc , CC=clang \u3068\u3057\u3066\u305d\u308c\u305e\u308c bootstrap \u3059\u308b\u3060\u3051\u3001\u3067\u3059\u3051\u3069\u3002<\/p>\n<p><!--more--><br \/>\n<code>goro@sara:~\/work\/emacs-23.3-gcc$ time (CC=<span style=\"background-color: #ffff00;\">gcc<\/span> .\/configure --with-ns --without-x;make bootstrap)<br \/>\n( CC=gcc .\/configure --with-ns --without-x; make bootstrap; ) 359.48s user 35.92s system 96% cpu <span style=\"background-color: #ffff00;\">6:49.55 total<\/span><\/code><br \/>\n<code>goro@sara:~\/work\/emacs-23.3-gcc$ time (CC=<span style=\"background-color: #ffff00;\">gcc<\/span> .\/configure --with-ns --without-x;make <span style=\"background-color: #ffff00;\">-j8<\/span> bootstrap)<br \/>\n( CC=gcc .\/configure --with-ns --without-x; make -j8 bootstrap; ) 637.43s user 52.41s system 567% cpu <span style=\"background-color: #ffff00;\">2:01.61 total<\/span><\/code><br \/>\n<code>goro@sara:~\/work\/emacs-23.3-clang$ time (CC=<span style=\"background-color: #ffff00;\">clang<\/span> .\/configure --with-ns --without-x;make bootstrap)<br \/>\n( CC=clang .\/configure --with-ns --without-x; make bootstrap; ) 344.44s user 34.30s system 96% cpu <span style=\"background-color: #ffff00;\">6:32.90 total<\/span><\/code><br \/>\n<code>goro@sara:~\/work\/emacs-23.3-clang$ time (CC=<span style=\"background-color: #ffff00;\">clang<\/span> .\/configure --with-ns --without-x;make <span style=\"background-color: #ffff00;\">-j8<\/span> bootstrap)<br \/>\n( CC=clang .\/configure --with-ns --without-x; make -j8 bootstrap; ) 634.69s user 51.22s system 580% cpu <span style=\"background-color: #ffff00;\">1:58.15 total<\/span><br \/>\n<\/code><br \/>\n\u7d50\u8ad6:\u4e26\u5217\u30d3\u30eb\u30c9\u3059\u3052\u30fc(\u7b11)\u3002\u3068\u3044\u3046\u3053\u3068\u3067 gcc \u3088\u308a\u3082 clang \u306e\u307b\u3046\u304c\u82e5\u5e72\u901f\u3044\u3088\u3046\u3067\u3059\u304c\u3001 Emacs \u3067\u3042\u3063\u3066\u3082\u8aa4\u5dee\u3067\u3057\u305f\u3002\u51fa\u6765\u4e0a\u304c\u3063\u305f Emacs.app \u306b\u3064\u3044\u3066\u4f53\u611f\u901f\u5ea6\u306b\u9055\u3044\u306f\u3042\u308a\u307e\u305b\u3093<span style=\"color: #888888;\">(\u3042\u3063\u305f\u3089 bootstrap \u3067\u3082\u3063\u3068\u5287\u7684\u306a\u5dee\u304c\u3067\u308b\u3060\u308d\u3046)<\/span>\u306e\u3067\u6562\u3048\u3066 clang \u3092\u4f7f\u3046\u610f\u5473\u306f\u2026\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u304f\u3089\u3044\u304b\u306a?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MacBook Pro \u3092\u8cb7\u3044\u66ff\u3048\u3001 CPU \u304c\u5f37\u5316\u3055\u308c\u305f\u306e\u3067\u697d\u3057\u304f\u306a\u3063\u3066\u3044\u308d\u3044\u308d\u904a\u3093\u3067\u3044\u307e\u3059\u3002\u3067\u3001 twitter \u3092\u773a\u3081\u3066\u3044\u305f\u3089 llvm \u306a\u3093\u3066\u5358\u8a9e\u304c\u4e26\u3093\u3067\u3044\u3066\u3001\u3075\u3068 llvm-gcc \u3068 Clang \u3067\u306f\u3069\u3093\u306a\u9055 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11],"tags":[77,23],"class_list":["post-1548","post","type-post","status-publish","format-standard","hentry","category-emacs","category-mac","tag-mac","tag-software"],"_links":{"self":[{"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/comments?post=1548"}],"version-history":[{"count":13,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1548\/revisions"}],"predecessor-version":[{"id":1561,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1548\/revisions\/1561"}],"wp:attachment":[{"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/media?parent=1548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/categories?post=1548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/tags?post=1548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}