{"id":158778,"date":"2019-12-29T18:33:06","date_gmt":"2019-12-29T10:33:06","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=158778"},"modified":"2019-12-29T18:33:06","modified_gmt":"2019-12-29T10:33:06","slug":"node-js-c-extended","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/node-js-c-extended.html","title":{"rendered":"\u300a Node.js\uff1a\u6765\u4e00\u6253 C++ \u6269\u5c55\u300bpdf\u7535\u5b50\u4e66\u514d\u8d39\u4e0b\u8f7d"},"content":{"rendered":"
Node.js \u4f5c\u4e3a\u8fd1\u51e0\u5e74\u65b0\u5174\u7684\u4e00\u79cd\u7f16\u7a0b\u8fd0\u884c\u65f6\uff0c\u6258 V8 \u5f15\u64ce\u7684\u798f\uff0c\u5728\u4f5c\u4e3a\u540e\u7aef\u670d\u52a1\u65f6\u6709\u6bd4\u8f83\u9ad8\u7684\u8fd0\u884c\u6548\u7387\uff0c\u5728\u5f88\u591a\u573a\u666f\u4e0b\u5bf9\u4e8e\u6211\u4eec\u7684\u65e5\u5e38\u5f00\u53d1\u8db3\u591f\u7528\u4e86\u3002\u4e0d\u8fc7\uff0c\u5b83\u8fd8\u4e3a\u5f00\u53d1\u8005\u5f00\u4e86\u4e00\u4e2a\u4f7f\u7528C++ \u5f00\u53d1 Node.js \u539f\u751f\u6269\u5c55\u7684\u53e3\u5b50\uff0c\u8ba9\u5f00\u53d1\u8005\u8fdb\u884c\u9879\u76ee\u5f00\u53d1\u65f6\u6709\u4e86\u66f4\u591a\u7684\u9009\u62e9\u3002<\/p>\n
\u300aNode.js\uff1a\u6765\u4e00\u6253 C++ \u6269\u5c55\u300b\u4ee5 Chrome V8 \u7684\u77e5\u8bc6\u4f5c\u4e3a\u57fa\u7840\uff0c\u914d\u5408 GYP \u7684\u4e00\u4e9b\u5185\u5bb9\uff0c\u5c06\u6559\u4f1a\u5927\u5bb6\u5982\u4f55\u4f7f\u7528 Node.js\u63d0\u4f9b\u7684\u4e00\u4e9b API \u6765\u7f16\u5199\u5176 C++ \u7684\u539f\u751f\u6269\u5c55\u3002\u6b64\u5916\uff0c\u5728\u540e\u7eed\u7684\u8fdb\u9636\u7ae0\u8282\u4e2d\uff0c\u8fd8\u4f1a\u4ecb\u7ecd\u539f\u751f\u62bd\u8c61NAN \u4ee5\u53ca\u4e0e\u5f02\u6b65\u76f8\u5173\u7684 libuv \u77e5\u8bc6\uff0c\u6700\u540e\u8f85\u4ee5\u51e0\u4e2a\u5b9e\u4f8b\u6765\u52a0\u6df1\u7406\u89e3\u3002\u4e0d\u8fc7\uff0c\u5728\u5b66\u4e60\u672c\u4e66\u5185\u5bb9\u4e4b\u524d\uff0c\u5e0c\u671b\u8bfb\u8005\u5df2\u7ecf\u5177\u5907\u4e86\u521d\u6b65\u7684 Node.js \u4ee5\u53ca C++ \u57fa\u7840\u3002<\/p>\n
\u9605\u8bfb\u300aNode.js\uff1a\u6765\u4e00\u6253 C++ \u6269\u5c55\u300b\uff0c\u76f8\u5f53\u4e8e\u540c\u65f6\u5b66\u4e60Chrome V8 \u5f00\u53d1\u3001libuv \u5f00\u53d1\u4ee5\u53ca Node.js \u7684\u539f\u751f C++ \u6269\u5c55\u5f00\u53d1\u77e5\u8bc6\uff0c\u975e\u5e38\u503c\u5f97\uff01<\/p>\n
<\/p>\n
\u6839\u636e\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u56fd\u5bb6\u7248\u6743\u5c40\u76f8\u5173\u6cd5\u89c4\uff0c\u672c\u7ad9\u4e0d\u63d0\u4f9b\u8be5PDF\u7535\u5b50\u7248\u4e66\u7c4d
\n\u60a8\u53ef\u4ee5\u8fdb\u5165\u4ea4\u6d41\u793e\u7fa4\u4e2d\u7ee7\u7eed\u5bfb\u627e\u8d44\u6599\u6216\u8d2d\u4e70\u6b63\u7248\u4e66\u7c4d<\/p>\n
<\/a><\/p>\n \u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff1ahttps:\/\/lrxjmw.cn\/club<\/a><\/p>\n