{"id":204,"date":"2010-05-16T21:03:38","date_gmt":"2010-05-16T12:03:38","guid":{"rendered":"http:\/\/helloidea.org\/?p=204"},"modified":"2015-04-27T05:08:22","modified_gmt":"2015-04-26T20:08:22","slug":"%e3%82%b3%e3%83%b3%e3%83%91%e3%82%a4%e3%83%a9%e3%81%ab%e3%82%88%e3%81%a3%e3%81%a6%e3%81%afint%e3%82%82char%e3%82%82%e5%90%8c%e3%81%98%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/helloidea.org\/index.php\/archives\/204.html","title":{"rendered":"\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u306fint\u3082char\u3082\u540c\u3058\uff1f"},"content":{"rendered":"<p>\u6700\u8fd1\u30a2\u30bb\u30f3\u30d6\u30e9\u3092\u5f04\u3063\u3066\u3066\u3001\u6c17\u304c\u3064\u3044\u305f\u306e\u3067\u30e1\u30e2\u30e1\u30e2<\/p>\n<p>\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u5b9f\u884c\u6642\u3067\u306a\u304f\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u8d77\u304d\u308b\u307f\u305f\u3044<\/p>\n<ul>\n<li>\u30b3\u30f3\u30d1\u30a4\u30eb\u524d<\/li>\n<\/ul>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nint sub01(char i, char j)\r\n{\r\n    i += j;\r\n    return i;\r\n}\r\n\r\nvoid main()\r\n{\r\n    char i = 10;\r\n    char j = 20;\r\n    i = sub01(i, j);\r\n}\r\n<\/pre>\n<ul>\n<li>\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3068\u3053\u308d\u3002<\/li>\n<\/ul>\n<p>8bit\u306e\u30c7\u30fc\u30bf\u308232bit\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u300132bit\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u306fchar\u3092\u4f7f\u3063\u3066\u3082\u610f\u5473\u304c\u7121\u3044\u3002\uff1f<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n.file\t&quot;test.c&quot;\r\n.text\r\n.globl sub01\r\n.type\tsub01, @function\r\nsub01:\r\npushl\t%ebp\r\nmovl\t%esp, %ebp\r\nsubl\t$8, %esp\r\nmovl\t8(%ebp), %edx\r\nmovl\t12(%ebp), %eax\r\nmovb\t%dl, -4(%ebp)\r\nmovb\t%al, -8(%ebp)\r\nmovzbl\t-4(%ebp), %edx\r\nmovzbl\t-8(%ebp), %eax\r\nleal\t(%edx,%eax), %eax\r\nmovb\t%al, -4(%ebp)\r\nmovsbl\t-4(%ebp),%eax\r\nleave\r\nret\r\n.size\tsub01, .-sub01\r\n\r\n.globl main\r\n.type\tmain, @function\r\nmain:\r\npushl\t%ebp\r\nmovl\t%esp, %ebp\r\nsubl\t$24, %esp\r\nmovb\t$10, -1(%ebp)\r\nmovb\t$20, -2(%ebp)\r\nmovsbl\t-2(%ebp),%edx\r\nmovsbl\t-1(%ebp),%eax\r\nmovl\t%edx, 4(%esp)\r\nmovl\t%eax, (%esp)\r\ncall\tsub01\r\nmovb\t%al, -1(%ebp)\r\nleave\r\nret\r\n.size\tmain, .-main\r\n.ident\t&quot;GCC: (Ubuntu 4.4.1-4ubuntu9) 4.4.1&quot;\r\n.section\t.note.GNU-stack,&quot;&quot;,@progbits\r\n<\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30e9\u306fGCC\u3067\u3059\u3002<br \/>\n\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u30b9\u30a4\u30de\u30bb\u30f3m\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u30a2\u30bb\u30f3\u30d6\u30e9\u3092\u5f04\u3063\u3066\u3066\u3001\u6c17\u304c\u3064\u3044\u305f\u306e\u3067\u30e1\u30e2\u30e1\u30e2 \u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u5b9f\u884c\u6642\u3067\u306a\u304f\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u8d77\u304d\u308b\u307f\u305f\u3044 \u30b3\u30f3\u30d1\u30a4\u30eb\u524d int sub01(char i, char j) { i += j; return i; } vo \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":13,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":1504,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions\/1504"}],"wp:attachment":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}