{"id":6281,"date":"2017-02-05T22:03:19","date_gmt":"2017-02-05T13:03:19","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6281"},"modified":"2017-02-06T12:42:00","modified_gmt":"2017-02-06T03:42:00","slug":"gcc-%e3%81%ae-wrapper-%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6281","title":{"rendered":"GCC \u306e -wrapper \u30aa\u30d7\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>GCC \u306b\u306f <code>-wrapper<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u3001\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u3068\u304d\u306e\u30e9\u30c3\u30d1\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u306e wrapper.sh \u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>#!\/bin\/sh\r\necho \"$@\"\r\nexec \"$@\"<\/pre>\n<\/blockquote>\n<p>\u3053\u308c\u3092\u30e9\u30c3\u30d1\u30fc\u306b\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u2026<\/p>\n<blockquote>\n<pre>[umezawa@devcent7:pts\/1 ~]$ gcc -wrapper .\/wrapper.sh a.c\r\n\/usr\/libexec\/gcc\/x86_64-redhat-linux\/4.8.5\/cc1 -quiet a.c -quiet -dumpbase a.c -mtune=generic -march=x86-64 -auxbase a -o \/tmp\/cccfNy2P.s\r\nas --64 -o \/tmp\/ccl8x25K.o \/tmp\/cccfNy2P.s\r\n\/usr\/libexec\/gcc\/x86_64-redhat-linux\/4.8.5\/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker \/lib64\/ld-linux-x86-64.so.2 \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crt1.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crti.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/crtbegin.o -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5 -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64 -L\/lib\/..\/lib64 -L\/usr\/lib\/..\/lib64 -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/.. \/tmp\/ccl8x25K.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/crtend.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crtn.o\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b <code>-no-integrated-cpp<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001<\/p>\n<blockquote>\n<pre><strong>\/usr\/libexec\/gcc\/x86_64-redhat-linux\/4.8.5\/cc1 -E -quiet a.c -mtune=generic -march=x86-64 -o \/tmp\/cc96rUtL.i<\/strong>\r\n\/usr\/libexec\/gcc\/x86_64-redhat-linux\/4.8.5\/cc1 -fpreprocessed \/tmp\/cc96rUtL.i -quiet -dumpbase a.c -mtune=generic -march=x86-64 -auxbase a -o \/tmp\/ccGeV7zF.s\r\nas --64 -o \/tmp\/cc1MBGIz.o \/tmp\/ccGeV7zF.s\r\n\/usr\/libexec\/gcc\/x86_64-redhat-linux\/4.8.5\/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker \/lib64\/ld-linux-x86-64.so.2 \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crt1.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crti.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/crtbegin.o -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5 -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64 -L\/lib\/..\/lib64 -L\/usr\/lib\/..\/lib64 -L\/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/.. \/tmp\/cc1MBGIz.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/crtend.o \/usr\/lib\/gcc\/x86_64-redhat-linux\/4.8.5\/..\/..\/..\/..\/lib64\/crtn.o<\/pre>\n<\/blockquote>\n<p>\u3068\u306a\u308a\u3001\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u8d77\u52d5\u3092\u5916\u90e8\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u30d5\u30c3\u30af\u3067\u304d\u307e\u3059\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u5bb9\u6613\u306b\u4ed6\u306e\u8ffd\u52a0\u306e\u30d7\u30ea\u30d7\u30ed\u30bb\u30b9\u3092\u631f\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u6a19\u6e96\u30d7\u30ea\u30d7\u30ed\u30bb\u30b9\u306e\u524d\u306b\u8ffd\u52a0\u3059\u308b\u306e\u3067\u3042\u308c\u3070 <code>-no-integrated-cpp<\/code> \u306f\u4e0d\u8981\u3067\u3059\u304c\uff09\u3002\u6a19\u6e96\u30d7\u30ea\u30d7\u30ed\u30bb\u30b9\u306e\u524d\u306b\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u524d\u51e6\u7406\u3092\u3057\u3066\u304b\u3089 gcc \u3092\u8d77\u52d5\u3057\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306f gcc \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3044\u3058\u308b\u3060\u3051\u3067\u3044\u3044\u306e\u3067\u3001IDE \u3068\u304b\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u306e\u65b9\u304c\u624b\u9593\u304c\u5c11\u306a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u975e\u5e38\u306b\u6b8b\u5ff5\u3067\u3059\u304c\u3001 Clang \u306b\u306f\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u7121\u3044\u3088\u3046\u3067\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5185\u90e8\u69cb\u9020\u306b\u4f9d\u5b58\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u306e\u3067\u81f4\u3057\u65b9\u3042\u308a\u307e\u305b\u3093\uff08Clang \u306f\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u305b\u305a\u81ea\u30d7\u30ed\u30bb\u30b9\u5185\u3067\u5168\u90e8\u51e6\u7406\u3059\u308b\uff09\u3002Xcode \u3067\u4f7f\u3044\u305f\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCC \u306b\u306f -wrapper \u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u3001\u30b5\u30d6\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u3068\u304d\u306e\u30e9\u30c3\u30d1\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-6281","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6281"}],"version-history":[{"count":7,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6281\/revisions"}],"predecessor-version":[{"id":6288,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6281\/revisions\/6288"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6281"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}