简体   繁体   English

Windows的Node.js x86和x64安装程序有什么区别?

[英]What's the difference between Node.js x86 and x64 installers for Windows?

They both install node.exe into C:\\Program Files (x86) ... so I'm wondering what the actual difference is. 他们都将node.exe安装到C:\\ Program Files (x86) ......所以我想知道实际的区别是什么。 I know that there is some because node-sqlserver module is failing on our machine and it does so in different ways for x86 and x64 versions of Node. 我知道有一些因为node-sqlserver模块在我们的机器上失败了,它以不同的方式为x86和x64版本的Node做到了。

Can somebody explain the difference for me? 有人能为我解释一下这个区别吗? Thanks. 谢谢。

The x64 installer installs the 64 bit version of node which is compiled against the 64 bit version of V8. x64安装程序安装64位版本的节点,该节点是针对64位版本的V8编译的。 The node-sqlserver package is a native module which means it needs to be compiled against the matching version of node. node-sqlserver包是一个本机模块,这意味着它需要针对匹配的节点版本进行编译。 IE: It will fail if you are using a pre-compiled, 32 bit version of the module against the 64 bit version of node. IE:如果您对64位版本的节点使用预编译的32位版本的模块,则会失败。

Other than the typical differences between 32 & 64 bit applications (larger address space, use of 8 bytes for addresses instead of 4 bytes), node doesn't differ between the two versions. 除了32位和64位应用程序之间的典型差异(更大的地址空间,使用8个字节用于地址而不是4个字节)之外,两个版本之间的节点没有区别。

This link gives a good summary of the main differences between the x86 and x64 processor architectures, and may help you understand your question. 此链接提供了x86和x64处理器体系结构之间主要差异的完整摘要,可以帮助您理解您的问题。

Essentially, x86 and x64 have different instruction sets, and so it might be better somehow to install it differently, so as to take more advantage of the features offered by each instruction set. 本质上,x86和x64具有不同的指令集,因此以某种方式以不同方式安装它可能更好,以便更好地利用每个指令集提供的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM