{"id":17924,"date":"2023-02-21T16:27:51","date_gmt":"2023-02-21T08:27:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=17924"},"modified":"2023-07-30T22:57:17","modified_gmt":"2023-07-30T14:57:17","slug":"%e6%b1%87%e7%bc%96%e8%af%ad%e8%a8%80%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/17924.html","title":{"rendered":"\u6c47\u7f16\u8bed\u8a00\u662f\u4ec0\u4e48"},"content":{"rendered":"<blockquote class=\"wp-block-quote\">\n<p>\u6c47\u7f16\u8bed\u8a00\uff08assembly language\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u7535\u5b50\u8ba1\u7b97\u673a\u3001\u5fae\u5904\u7406\u5668\u3001\u5fae\u63a7\u5236\u5668\u6216\u5176\u4ed6\u53ef\u7f16\u7a0b\u5668\u4ef6\u7684\u4f4e\u7ea7\u8bed\u8a00\uff0c\u4ea6\u79f0\u4e3a\u7b26\u53f7\u8bed\u8a00\u3002\u5728\u6c47\u7f16\u8bed\u8a00\u4e2d\uff0c\u7528\u52a9\u8bb0\uff08Mnemonics\uff09\u4ee3\u66ff\u673a\u5668\u6307\u4ee4\u7684\u64cd\u4f5c\u7801\uff0c\u7528\u5730\u5740\u7b26\u53f7\uff08Symbol\uff09\u6216\u6807\u53f7\uff08Label\uff09\u4ee3\u66ff\u6307\u4ee4\u6216\u64cd\u4f5c\u6570\u7684\u5730\u5740\u3002<\/p>\n<\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" alt=\"\" class=\"wp-image-17941\" decoding=\"async\" height=\"421\" sizes=\"(max-width: 680px) 100vw, 680px\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/02\/\u6dfb\u52a0\u6807\u9898-18-16.png?x-oss-process=image\/auto-orient,1\/format,webp\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/02\/\u6dfb\u52a0\u6807\u9898-18-16.png?x-oss-process=image\/auto-orient,1\/format,webp 680w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/02\/\u6dfb\u52a0\u6807\u9898-18-16-300x186.png 300w\" width=\"680\"\/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u6c47\u7f16\u8bed\u8a00<\/strong><\/h2>\n<h3 class=\"wp-block-heading\"><strong>\u5b9a\u4e49<\/strong><\/h3>\n<p>\u6c47\u7f16\u8bed\u8a00\uff08assembly language\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u7535\u5b50\u8ba1\u7b97\u673a\u3001\u5fae\u5904\u7406\u5668\u3001\u5fae\u63a7\u5236\u5668\u6216\u5176\u4ed6\u53ef\u7f16\u7a0b\u5668\u4ef6\u7684\u4f4e\u7ea7\u8bed\u8a00\uff0c\u4ea6\u79f0\u4e3a\u7b26\u53f7\u8bed\u8a00\u3002\u5728\u6c47\u7f16\u8bed\u8a00\u4e2d\uff0c\u7528\u52a9\u8bb0\u7b26\uff08Mnemonics\uff09\u4ee3\u66ff\u673a\u5668\u6307\u4ee4\u7684\u64cd\u4f5c\u7801\uff0c\u7528\u5730\u5740\u7b26\u53f7\uff08Symbol\uff09\u6216\u6807\u53f7\uff08Label\uff09\u4ee3\u66ff\u6307\u4ee4\u6216\u64cd\u4f5c\u6570\u7684\u5730\u5740\u3002\u5728\u4e0d\u540c\u7684\u8bbe\u5907\u4e2d\uff0c\u6c47\u7f16\u8bed\u8a00\u5bf9\u5e94\u7740\u4e0d\u540c\u7684\u673a\u5668\u8bed\u8a00\u6307\u4ee4\u96c6\uff0c\u901a\u8fc7\u6c47\u7f16\u8fc7\u7a0b\u8f6c\u6362\u6210\u673a\u5668\u6307\u4ee4\u3002\u666e\u904d\u5730\u8bf4\uff0c\u7279\u5b9a\u7684\u6c47\u7f16\u8bed\u8a00\u548c\u7279\u5b9a\u7684\u673a\u5668\u8bed\u8a00\u6307\u4ee4\u96c6\u662f\u4e00\u4e00\u5bf9\u5e94\u7684,\u4e0d\u540c\u5e73\u53f0\u4e4b\u95f4\u4e0d\u53ef\u76f4\u63a5\u79fb\u690d\u3002<\/p>\n<p>\u8bb8\u591a\u6c47\u7f16\u7a0b\u5e8f\u4e3a\u7a0b\u5e8f\u5f00\u53d1\u3001\u6c47\u7f16\u63a7\u5236\u3001\u8f85\u52a9\u8c03\u8bd5\u63d0\u4f9b\u4e86\u989d\u5916\u7684\u652f\u6301\u673a\u5236\u3002\u6709\u7684\u6c47\u7f16\u8bed\u8a00\u7f16\u7a0b\u5de5\u5177\u7ecf\u5e38\u4f1a\u63d0\u4f9b\u5b8f\uff0c\u5b83\u4eec\u4e5f\u88ab\u79f0\u4e3a\u5b8f\u6c47\u7f16\u5668\u3002<\/p>\n<p>\u6c47\u7f16\u8bed\u8a00\u4e0d\u50cf\u5176\u4ed6\u5927\u591a\u6570\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u4e00\u6837\u88ab\u5e7f\u6cdb\u7528\u4e8e\u7a0b\u5e8f\u8bbe\u8ba1\u3002\u5728\u4eca\u5929\u7684\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b83\u901a\u5e38\u88ab\u5e94\u7528\u5728\u5e95\u5c42\uff0c\u786c\u4ef6\u64cd\u4f5c\u548c\u9ad8\u8981\u6c42\u7684\u7a0b\u5e8f\u4f18\u5316\u7684\u573a\u5408\u3002\u9a71\u52a8\u7a0b\u5e8f\u3001\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u548c\u5b9e\u65f6\u8fd0\u884c\u7a0b\u5e8f\u90fd\u9700\u8981\u6c47\u7f16\u8bed\u8a00\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u6c47\u7f16\u5668\u548c\u94fe\u63a5\u5668<\/strong><\/h3>\n<p>\u6c47\u7f16\u5668\uff08assembler\uff09\u662f\u4e00\u79cd\u5de5\u5177\u7a0b\u5e8f\uff0c\u7528\u4e8e\u5c06\u6c47\u7f16\u8bed\u8a00\u6e90\u7a0b\u5e8f\u8f6c\u6362\u4e3a\u673a\u5668\u8bed\u8a00\u3002\u94fe\u63a5\u5668\uff08linker\uff09\u4e5f\u662f\u4e00\u79cd\u5de5\u5177\u7a0b\u5e8f\uff0c\u5b83\u628a\u6c47\u7f16\u5668\u751f\u6210\u7684\u5355\u4e2a\u6587\u4ef6\u7ec4\u5408\u4e3a\u4e00\u4e2a\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u8fd8\u6709\u4e00\u4e2a\u76f8\u5173\u7684\u5de5\u5177\uff0c\u79f0\u4e3a\u8c03\u8bd5\u5668\uff08debugger\uff09\uff0c\u4f7f\u7a0b\u5e8f\u5458\u53ef\u4ee5\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\uff0c\u5355\u6b65\u6267\u884c\u7a0b\u5e8f\u5e76\u68c0\u67e5\u5bc4\u5b58\u5668\u548c\u5185\u5b58\u72b6\u6001\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u6c47\u7f16\u8bed\u8a00\u4e0e\u673a\u5668\u8bed\u8a00\u6709\u4ec0\u4e48\u5173\u7cfb<\/strong><\/h3>\n<p>\u673a\u5668\u8bed\u8a00\uff08machine language\uff09\u662f\u4e00\u79cd\u6570\u5b57\u8bed\u8a00\uff0c \u4e13\u95e8\u8bbe\u8ba1\u6210\u80fd\u88ab\u8ba1\u7b97\u673a\u5904\u7406\u5668\uff08CPU\uff09\u7406\u89e3\u3002\u6240\u6709 x86 \u5904\u7406\u5668\u90fd\u7406\u89e3\u5171\u540c\u7684\u673a\u5668\u8bed\u8a00\u3002<\/p>\n<p>\u6c47\u7f16\u8bed\u8a00\uff08assembly language\uff09\u5305\u542b\u7528\u77ed\u52a9\u8bb0\u7b26\u5982 ADD\u3001MOV\u3001SUB \u548c CALL \u4e66\u5199\u7684\u8bed\u53e5\u3002\u6c47\u7f16\u8bed\u8a00\u4e0e\u673a\u5668\u8bed\u8a00\u662f\u4e00\u5bf9\u4e00\uff08one-to-one\uff09\u7684\u5173\u7cfb\uff1a\u6bcf\u4e00\u6761\u6c47\u7f16\u8bed\u8a00\u6307\u4ee4\u5bf9\u5e94\u4e00\u6761\u673a\u5668\u8bed\u8a00\u6307\u4ee4\u3002\u5bc4\u5b58\u5668\uff08register\uff09\u662f CPU \u4e2d\u88ab\u547d\u540d\u7684\u5b58\u50a8\u4f4d\u7f6e\uff0c\u7528\u4e8e\u4fdd\u5b58\u64cd\u4f5c\u7684\u4e2d\u95f4\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5ef6\u4f38\u9605\u8bfb\uff1a<\/strong><\/p>\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u6c47\u7f16\u8bed\u8a00\u53ef\u79fb\u690d\u5417<\/strong><\/h2>\n<p>\u4e00\u79cd\u8bed\u8a00\uff0c\u5982\u679c\u5b83\u7684\u6e90\u7a0b\u5e8f\u80fd\u591f\u5728\u5404\u79cd\u5404\u6837\u7684\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u8fdb\u884c\u7f16\u8bd1\u548c\u8fd0\u884c\uff0c\u90a3\u4e48\u8fd9\u79cd\u8bed\u8a00\u88ab\u79f0\u4e3a\u662f\u53ef\u79fb\u690d\u7684\uff08portable\uff09\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u4e00\u4e2a C++ \u7a0b\u5e8f\uff0c\u9664\u975e\u9700\u8981\u7279\u522b\u5f15\u7528\u67d0\u79cd\u64cd\u4f5c\u7cfb\u7edf\u7684\u5e93\u51fd\u6570\uff0c\u5426\u5219\u5b83\u5c31\u51e0\u4e4e\u53ef\u4ee5\u5728\u4efb\u4f55\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u7f16\u8bd1\u548c\u8fd0\u884c\u3002Java \u8bed\u8a00\u7684\u4e00\u5927\u7279\u70b9\u5c31\u662f\uff0c\u5176\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\u51e0\u4e4e\u80fd\u5728\u6240\u6709\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u8fd0\u884c\u3002<\/p>\n<p>\u6c47\u7f16\u8bed\u8a00\u4e0d\u662f\u53ef\u79fb\u690d\u7684\uff0c\u56e0\u4e3a\u5b83\u662f\u4e3a\u7279\u5b9a\u5904\u7406\u5668\u7cfb\u5217\u8bbe\u8ba1\u7684\u3002\u76ee\u524d\u5e7f\u6cdb\u4f7f\u7528\u7684\u6709\u591a\u79cd\u4e0d\u540c\u7684\u6c47\u7f16\u8bed\u8a00\uff0c\u6bcf\u4e00\u79cd\u90fd\u57fa\u4e8e\u4e00\u4e2a\u5904\u7406\u5668\u7cfb\u5217\u3002<\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e9b\u5e7f\u4e3a\u4eba\u77e5\u7684\u5904\u7406\u5668\u7cfb\u5217\u5982 Motorola 68\u00d700\u3001x86\u3001SUN Sparc\u3001Vax \u548c IBM-370\uff0c\u6c47\u7f16\u8bed\u8a00\u6307\u4ee4\u4f1a\u76f4\u63a5\u4e0e\u8be5\u8ba1\u7b97\u673a\u4f53\u7cfb\u7ed3\u6784\u76f8\u5339\u914d\uff0c\u6216\u8005\u5728\u6267\u884c\u65f6\u7528\u4e00\u79cd\u88ab\u79f0\u4e3a\u5fae\u4ee3\u7801\u89e3\u91ca\u5668\uff08microcode interpreter\uff09\u7684\u5904\u7406\u5668\u5185\u7f6e\u7a0b\u5e8f\u6765\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u6c47\u7f16\u8bed\u8a00\uff08assembly language\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u7535\u5b50\u8ba1\u7b97\u673a\u3001\u5fae\u5904\u7406\u5668\u3001\u5fae\u63a7\u5236\u5668\u6216\u5176\u4ed6\u53ef\u7f16\u7a0b\u5668\u4ef6\u7684\u4f4e\u7ea7\u8bed [&hellip;]","protected":false},"author":1,"featured_media":17941,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/17924"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=17924"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/17924\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/17941"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=17924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=17924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=17924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}