{"id":8531,"date":"2025-01-29T21:55:49","date_gmt":"2025-01-29T12:55:49","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8531"},"modified":"2025-01-29T21:55:49","modified_gmt":"2025-01-29T12:55:49","slug":"ubuntu-amd64-%e3%81%a7-32bit-%e9%96%8b%e7%99%ba","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8531","title":{"rendered":"Ubuntu amd64 \u3067 32bit \u958b\u767a"},"content":{"rendered":"<p>\u4eca\u306e Ubuntu \u306f\u3001Intel \u30d7\u30ed\u30bb\u30c3\u30b5\u5411\u3051\u3060\u3068 amd64 (64bit) \u306e\u3082\u306e\u3057\u304b\u306a\u304f\u3066 i386 (32bit) \u306e\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u3002amd64 \u306a\u74b0\u5883\u3067\u3082 i386 \u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u958b\u767a\u306e\u305f\u3081\u306b\u306f\u666e\u901a\u306e gcc \u306a\u3069\u306e\u4ed6\u306b\u8ffd\u52a0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30ac\u30c3\u30c4\u30ea\u3068\u3057\u305f\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<p>gcc \u3084 clang \u3067 C \u306e 32bit \u958b\u767a\u3092\u3059\u308b\u5834\u5408\u306f\u3001gcc-multilib \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306f dependency package \u3067\u3001\u5b9f\u969b\u306b 32bit \u958b\u767a\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308b\u306e\u306f libc6-dev-i386, libc6-dev-x32, lib32gcc-11-dev, libx32gcc-11-dev \u3067\u3059\uff0811 \u306e\u6240\u306f gcc \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3002<a href=\"https:\/\/en.wikipedia.org\/wiki\/X32_ABI\">x32<\/a> \u3063\u3066\u307e\u3060\u751f\u304d\u3066\u305f\u3093\u3060\u2026\u3002<\/p>\n<p>multilib \u306f GCC (Gnu Compiler Collection) \u306e\u5404\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u5bfe\u5fdc\u3057\u305f\u3082\u306e\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3001C++ \u958b\u767a\u3092\u3057\u305f\u3051\u308c\u3070\u8ffd\u52a0\u3067 g++-multilib \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3057\u3001Fortran \u306a\u3089 gfortran-multilib \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\/\u30ea\u30f3\u30af\u3059\u308b\u6642\u306f -m32 \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n$ gcc -m32 -o hello32 hello.c\r\n<\/pre>\n<\/blockquote>\n<p>\u4ed6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u305f\u958b\u767a\u3092\u3059\u308b\u5834\u5408\u306f\u5bfe\u5fdc\u3057\u305f 32bit \u7248\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306f\u305a\u3067\u3059\u304c\u3001\u4eca\u56de\u81ea\u5206\u306f\u305d\u3053\u307e\u3067\u306f\u5fc5\u8981\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u306e Ubuntu \u306f\u3001Intel \u30d7\u30ed\u30bb\u30c3\u30b5\u5411\u3051\u3060\u3068 amd64 (64bit) \u306e\u3082\u306e\u3057\u304b\u306a\u304f\u3066 i386 (32bit) \u306e\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u3002amd64 \u306a\u74b0\u5883\u3067\u3082 i386 \u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u958b\u767a [&hellip;]<\/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-8531","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\/8531","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=8531"}],"version-history":[{"count":2,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8531\/revisions"}],"predecessor-version":[{"id":8533,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8531\/revisions\/8533"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8531"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}