{"id":1633,"date":"2010-06-27T23:12:45","date_gmt":"2010-06-27T14:12:45","guid":{"rendered":"http:\/\/oichinote.com\/plus\/2010\/06\/27\/powerpc-g4%e3%81%af32bit-cpu\/"},"modified":"2010-06-27T23:12:45","modified_gmt":"2010-06-27T14:12:45","slug":"powerpc-g432bit","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2010\/06\/powerpc-g432bit.html","title":{"rendered":"PowerPC G4\u306f32bit CPU"},"content":{"rendered":"<p>\u5f53\u305f\u308a\u524d\u904e\u304e\u3066\u3001\u78ba\u304b\u3081\u308b\u307e\u3067\u3082\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002PowerMac G4\/MDD\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306eC\u30d7\u30ed\u30b0\u30e9\u30e0&quot;sizeof.c&quot;\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>#include &lt;stdio.h&gt;\nint main(argc, argv)\nint argc;\nchar *argv;\n{\n&nbsp; printf(&quot;sizeof(int) = %d\\n&quot;, (int)sizeof(int));\n&nbsp; printf(&quot;sizeof(long) = %d\\n&quot;, (int)sizeof(long));\n&nbsp; printf(&quot;sizeof(long long) = %d\\n&quot;, (int)sizeof(long long));\n}<\/pre>\n<p>Ubuntu 9.10\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3067\u3059\u3002\u8868\u793a\u7d50\u679c\u306f\u3001\u6298\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>$ gcc -m32 -o sizeof32 sizeof.c\n$ file sizeof32\nsizeof32: ELF 32-bit MSB executable, PowerPC or cisco 4500,\nversion 1 (SYSV), dynamically linked (uses shared libs),\nfor GNU\/Linux 2.6.15, with unknown capability 0x41000000 = 0x13676e75,\nwith unknown capability 0x10000 = 0xb0401, not stripped\n$ .\/sizeof32\nsizeof(int) = 4\nsizeof(long) = 4\nsizeof(long long) = 8\n$ gcc -m64 -o sizeof64 sizeof.c\n$ file sizeof64\nsizeof64: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500,\nversion 1 (SYSV), dynamically linked (uses shared libs),\nfor GNU\/Linux 2.6.15, not stripped\n$ .\/sizeof64\nbash: .\/sizeof64: \u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093<\/pre>\n<p>64bit\u30d0\u30a4\u30ca\u30ea\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Mac OS X 10.5.8\u3067\u3082\u540c\u3058\u4e8b\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre>$ gcc -m32 -o sizeof32 sizeof.c\n$ file sizeof32\nsizeof32: Mach-O executable ppc\n$ .\/sizeof32\nsizeof(int) = 4\nsizeof(long) = 4\nsizeof(long long) = 8\n$ gcc -m64 -o sizeof642 sizeof.c\n$ file sizeof64\nsizeof64: Mach-O 64-bit executable ppc64\n$ .\/sizeof64\n.\/sizeof64: Bad CPU type in executable.<\/pre>\n<p>\u3084\u306f\u308a\u300164bit\u30d0\u30a4\u30ca\u30ea\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u8a00\u3046\u8a33\u3067\u3001PowerPC G4\u306f32bit CPU\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001iMac(mid 2007)(OS\u306fMac OS X 10.5.8 Leopard)\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>$ gcc -m32 -o sizeof32 sizeof.c\n$ .\/sizeof32\nsizeof(int) = 4\nsizeof(long) = 4\nsizeof(long long) = 8\n$ gcc -m64 -o sizeof64 sizeof.c\n$ .\/sizeof64\nsizeof(int) = 4\nsizeof(long) = 8\nsizeof(long long) = 8<\/pre>\n<p>long\u306e\u7d50\u679c\u306b\u3054\u6ce8\u76ee\u3042\u308c\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u305f\u308a\u524d\u904e\u304e\u3066\u3001\u78ba\u304b\u3081\u308b\u307e\u3067\u3082\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002PowerMac G4\/MDD\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002 \u6b21\u306eC\u30d7\u30ed\u30b0\u30e9\u30e0&quot;sizeof.c&quot;\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002 #include &lt;stdio. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300ePowerPC G4\u306f32bit CPU\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-1633","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":10697,"url":"https:\/\/oichinote.com\/plus\/2014\/01\/cross-compile-for-mips-on-ubuntu-12-04.html","url_meta":{"origin":1633,"position":0},"title":"PQI Air Pen\u7528\u306bUbuntu 12.04\u3067mips\u306e\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u8a2d\u5b9a","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e741\u670824\u65e5","format":false,"excerpt":"PQI Air Pen\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u69d8\u306b\u306a\u308b\u3068\u3001\u3044\u308d\u3044\u308d\u904a\u3079\u307e\u3059\u3002 PQI Air Pen\u306b\u306f\u307e\u308a\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"MIPS GCC Installer","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/01\/20140123mips-gcc-trim-th.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1961,"url":"https:\/\/oichinote.com\/plus\/2011\/05\/intal-macpowerp.html","url_meta":{"origin":1633,"position":1},"title":"intel Mac\u3067PowerPC\u30d0\u30a4\u30ca\u30ea\u306e\u5b9f\u884c","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e745\u670819\u65e5","format":false,"excerpt":"PowerMac\u3067\u4f7f\u3063\u3066\u3044\u305fMacPorts\u74b0\u5883\u3092\u3001MacBook Pro (Early 2011)\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8219,"url":"https:\/\/oichinote.com\/plus\/2013\/06\/search-powerpc-app-2.html","url_meta":{"origin":1633,"position":2},"title":"PowerPC\u5c02\u7528\u30a2\u30d7\u30ea\u3092\u63a2\u3059(2)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e746\u67085\u65e5","format":false,"excerpt":"\u79c1\u304c\u3001Mac OS X 10.6 Snow Leopard\u304b\u3089\u3001OS X 10.7 Lion\u306b\u4e57\u308a\u63db\u2026","rel":"","context":"Mac","block_context":{"text":"Mac","link":"https:\/\/oichinote.com\/plus\/category\/mac"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2013,"url":"https:\/\/oichinote.com\/plus\/2011\/07\/powerpc-dd1c.html","url_meta":{"origin":1633,"position":3},"title":"PowerPC\u5c02\u7528\u30a2\u30d7\u30ea\u3092\u63a2\u3059(1)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e747\u670810\u65e5","format":false,"excerpt":"OS X Lion\u3067\u306fRosetta\u304c\u642d\u8f09\u3055\u308c\u306a\u3044\u3089\u3057\u3044\u3067\u3059\u3002 OS X Lion\u3063\u3066\u3001Rosett\u2026","rel":"","context":"Mac","block_context":{"text":"Mac","link":"https:\/\/oichinote.com\/plus\/category\/mac"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/img\/20110710info_powerpc.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1638,"url":"https:\/\/oichinote.com\/plus\/2010\/07\/ubuntu-910swap.html","url_meta":{"origin":1633,"position":4},"title":"Ubuntu 9.10\u306eswap\u9818\u57df\u3092\u7e2e\u5c0f[\u8ffd\u8a18\u30fb\u8a02\u6b63\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e747\u67082\u65e5","format":false,"excerpt":"PowerMac G4\/MDD\u306bUbuntu 9.10\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306f\u6c17\u3065\u3044\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10836,"url":"https:\/\/oichinote.com\/plus\/2014\/02\/install-kernel-module-on-pqi-air-pen.html","url_meta":{"origin":1633,"position":5},"title":"PQI Air Pen\u306bKernel\u30e2\u30b8\u30e5\u30fc\u30eb\u8ffd\u52a0","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e742\u67085\u65e5","format":false,"excerpt":"\u6b21\u306e\u8a18\u4e8b\u306e\u901a\u308a\u3001PQI Air Pen\u7528\u306b\u3001\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3057\u305f\u3002 PQI Air \u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"PQI Air Pen","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/01\/20170210pqi-air-pen.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=1633"}],"version-history":[{"count":0,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1633\/revisions"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=1633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=1633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=1633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}