{"id":6145,"date":"2016-12-11T17:21:35","date_gmt":"2016-12-11T08:21:35","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6145"},"modified":"2016-12-12T23:06:51","modified_gmt":"2016-12-12T14:06:51","slug":"windows-%e4%b8%8a%e3%81%a7%e3%81%ae-visual-c-%e3%81%a8-gccclang-%e3%81%ae%e7%9b%b8%e4%ba%92%e9%81%8b%e7%94%a8%ef%bc%88%e3%81%9d%e3%81%ae%ef%bc%94%ef%bc%89","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6145","title":{"rendered":"Windows \u4e0a\u3067\u306e Visual C++ \u3068 GCC\/Clang \u306e\u76f8\u4e92\u904b\u7528\uff08\u305d\u306e\uff14\uff09"},"content":{"rendered":"<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6134\">\u305d\u306e\uff13<\/a>\u306e\u7d9a\u304d<\/p>\n<p>\u305d\u306e\uff13\u3067\u306f\u30ea\u30f3\u30af\u3092 Visual C++ \u5074\u3067\u884c\u3044\u307e\u3057\u305f\u304c\u3001GCC \u5074\u3067\u3082\u884c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre>C:\\cygwin\\home\\umezawa&gt;cl \/Focallee_vc.o \/c callee.c\r\nMicrosoft(R) C\/C++ Optimizing Compiler Version 19.00.24215.1 for x86\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\ncallee.c\r\n<\/pre>\n<\/blockquote>\n<blockquote>\n<pre>umezawa@selene ~$ gcc -o a3 main.c callee_vc.o\r\nWarning: corrupt .drectve at end of def file\r\n\r\n<\/pre>\n<\/blockquote>\n<p>\u4f55\u3084\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30ea\u30f3\u30af\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u3092\u30b0\u30b0\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\uff08\u30e9\u30f3\u30bf\u30a4\u30e0\uff09\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6307\u793a\u3059\u308b\u6a5f\u80fd\u3092 GCC \u5074\u306e\u30ea\u30f3\u30ab\u304c\u89e3\u91c8\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u3088\u308a\u767a\u751f\u3059\u308b\u3082\u306e\u3067\u3042\u308b\u3089\u3057\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002Visual C++ \u3060\u3051\u306e\u4e16\u754c\u3067\u3042\u3063\u3066\u3082\u3001\u30c7\u30d0\u30c3\u30b0\u30d3\u30eb\u30c9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u30ea\u30ea\u30fc\u30b9\u30d3\u30eb\u30c9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u6df7\u305c\u3066\u30ea\u30f3\u30af\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u8b66\u544a\u304c\u51fa\u307e\u3059\u304c\u3001\u305d\u308c\u306f\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6307\u793a\u3092\u7701\u7565\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3 <code>\/Zl<\/code> \u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<blockquote>\n<pre>c:\\cygwin\\home\\umezawa>cl \/Focallee_vc_2.o \/Zl \/c callee.c\r\nMicrosoft(R) C\/C++ Optimizing Compiler Version 19.00.24215.1 for x86\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\ncallee.c\r\n<\/pre>\n<\/blockquote>\n<blockquote>\n<pre>umezawa@selene ~$ gcc -o a3 main.c callee_vc_2.o\r\n\r\numezawa@selene ~$ .\/a3\r\n10\r\n14\r\n<\/pre>\n<\/blockquote>\n<p>\u6b63\u3057\u304f\u52d5\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u524d\u56de\u3068\u540c\u69d8\u306b\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>C:\\cygwin\\home\\umezawa&gt;cl \/Focallee2_a_vc.o \/Zl \/c callee2_a.c\r\nMicrosoft(R) C\/C++ Optimizing Compiler Version 19.00.24215.1 for x86\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\ncallee2_a.c\r\n\r\nC:\\cygwin\\home\\umezawa&gt;cl \/Focallee2_b_vc.o \/Zl \/c callee2_b.c\r\nMicrosoft(R) C\/C++ Optimizing Compiler Version 19.00.24215.1 for x86\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\ncallee2_b.c\r\n\r\nC:\\cygwin\\home\\umezawa&gt;cl \/Focallee2_c_vc.o \/Zl \/c callee2_c.c\r\nMicrosoft(R) C\/C++ Optimizing Compiler Version 19.00.24215.1 for x86\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\ncallee2_c.c\r\n\r\nc:\\cygwin\\home\\umezawa&gt;lib \/OUT:callee2_vc.a callee2_a_vc.o callee2_b_vc.o callee2_c_vc.o\r\nMicrosoft (R) Library Manager Version 14.00.24215.1\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\n<\/pre>\n<\/blockquote>\n<blockquote>\n<pre>umezawa@selene ~$ gcc -o a4 main2.c callee2_vc.a\r\n\r\numezawa@selene ~$ .\/a4\r\n20\r\n13\r\n6\r\n\r\n<\/pre>\n<\/blockquote>\n<p>Visual C++ \u306e\u65b9\u3067 <code>\/Zl<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u5f8c\u306f\u7279\u306b\u554f\u984c\u306a\u304f\u30ea\u30f3\u30af\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3082\u3063\u3068\u3082\u3001GCC \u4e3b\u4f53\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b Visual C++ \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3002\uff08\u307f\u3082\u3075\u305f\u3082\u306a\u3044\uff09<\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6163\">\u305d\u306e\uff15<\/a>\u306b\u7d9a\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e\uff13\u306e\u7d9a\u304d \u305d\u306e\uff13\u3067\u306f\u30ea\u30f3\u30af\u3092 Visual C++ \u5074\u3067\u884c\u3044\u307e\u3057\u305f\u304c\u3001GCC \u5074\u3067\u3082\u884c\u3063\u3066\u307f\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-6145","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\/6145","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=6145"}],"version-history":[{"count":8,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6145\/revisions"}],"predecessor-version":[{"id":6171,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6145\/revisions\/6171"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}