{"id":4582,"date":"2019-08-24T00:49:04","date_gmt":"2019-08-23T16:49:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4582"},"modified":"2020-05-05T13:51:32","modified_gmt":"2020-05-05T05:51:32","slug":"as","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/as","title":{"rendered":"as\u547d\u4ee4 – GUN\u6c47\u7f16\u5668"},"content":{"rendered":"\n

as\u547d\u4ee4\u662f\u4e8c\u8fdb\u5236\u5de5\u5177\u96c6GNU Binutils\u7684\u4e00\u5458\uff0c\u662fGNU\u63a8\u51fa\u7684\u4e00\u6b3e\u6c47\u7f16\u8bed\u8a00\u7f16\u8bd1\u5668\u96c6\uff0c\u7528\u4e8e\u5c06\u6c47\u7f16\u4ee3\u7801\u7f16\u8bd1\u4e3a\u4e8c\u8fdb\u5236\u4ee3\u7801\uff0c\u5b83\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u5904\u7406\u5668\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>as [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-ac<\/td>\u5ffd\u7565\u5931\u8d25\u6761\u4ef6<\/td><\/tr>
-ad<\/td>\u5ffd\u7565\u8c03\u8bd5\u6307\u4ee4<\/td><\/tr>
-ah<\/td>\u5305\u62ec\u9ad8\u7ea7\u6e90<\/td><\/tr>
-al<\/td>\u5305\u62ec\u88c5\u914d<\/td><\/tr>
-am<\/td>\u5305\u62ec\u5b8f\u6269\u5c55<\/td><\/tr>
-an<\/td>\u5ffd\u7565\u5f62\u5f0f\u5904\u7406<\/td><\/tr>
-as<\/td>\u5305\u62ec\u7b26\u53f7<\/td><\/tr>
=file<\/td>\u8bbe\u7f6e\u5217\u51fa\u6587\u4ef6\u7684\u540d\u5b57<\/td><\/tr>
--alternate<\/td>\u4ee5\u4ea4\u4e92\u5b8f\u6a21\u5f0f\u5f00\u59cb<\/td><\/tr>
-f<\/td>\u8df3\u8fc7\u7a7a\u767d\u548c\u6ce8\u91ca\u9884\u5904\u7406<\/td><\/tr>
-g<\/td>\u4ea7\u751f\u8c03\u8bd5\u4fe1\u606f<\/td><\/tr>
-J<\/td>\u5bf9\u4e8e\u6709\u7b26\u53f7\u6ea2\u51fa\u4e0d\u663e\u793a\u8b66\u544a\u4fe1\u606f<\/td><\/tr>
-L<\/td>\u5728\u7b26\u53f7\u8868\u4e2d\u4fdd\u7559\u672c\u5730\u7b26\u53f7<\/td><\/tr>
-o<\/td>\u6307\u5b9a\u8981\u751f\u6210\u7684\u76ee\u6807\u6587\u4ef6<\/td><\/tr>
--statistics<\/td>\u6253\u5370\u6c47\u7f16\u6240\u7528\u7684\u6700\u5927\u7a7a\u95f4\u548c\u603b\u65f6\u95f4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u5728linux\u4e0b\u8fdb\u884c\u5f00\u53d1\u65f6\uff0c\u5f88\u5c11\u5355\u72ec\u4f7f\u7528as\u547d\u4ee4\u8fdb\u884c\u6c47\u7f16\u64cd\u4f5c\uff0c\u901a\u5e38\u90fd\u662f\u7531gcc\u547d\u4ee4\u81ea\u52a8\u5b8c\u6210\u6c47\u7f16\u548c\u94fe\u63a5\u64cd\u4f5c\u3002<\/p>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5047\u8bbe\u6709\u6c47\u7f16\u6587\u4ef6linuxcool.s\uff0c\u5c06\u5176\u4f1a\u53d8\u6210\u4e8c\u8fdb\u5236.o\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# as linuxcool.s -o linuxcool.o<\/pre>\n\n\n\n

\u5ffd\u7565\u5931\u8d25\u6761\u4ef6\u6c47\u7f16\u6587\u4ef6linuxcool.s\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# as -ac linuxcool.s -o linuxcool.o<\/pre>\n\n\n\n

\u751f\u6210\u8c03\u8bd5\u4fe1\u606f\u8fdb\u884c\u6c47\u7f16\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# as -g linuxcool.s -o linuxcool.o<\/pre>\n","protected":false},"excerpt":{"rendered":"

as\u547d\u4ee4\u662f\u4e8c\u8fdb\u5236\u5de5\u5177\u96c6GNU Binutils\u7684\u4e00\u5458\uff0c\u662fGNU\u63a8\u51fa\u7684\u4e00\u6b3e\u6c47\u7f16\u8bed\u8a00\u7f16\u8bd1\u5668\u96c6\uff0c\u7528\u4e8e\u5c06\u6c47\u7f16\u4ee3\u7801\u7f16\u8bd1\u4e3a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4582"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4582"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4582\/revisions"}],"predecessor-version":[{"id":7468,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4582\/revisions\/7468"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}