什么是x86平台()
admin
2023-07-05 22:15:35
平板电脑,爱国者X86,
基于Intel X86构建的计算机平台。(Intel X86的定义自行百科)
这菜单貌似是Visual Studio 之类的IDE里的吧。
“生成”就在你所用的“程序编辑器”(如VS)上菜单栏那一行.
我们可以通过dll的PE Image File中指定位置的字节来判断dll文件是x86的还是x64的。如下是代码示例:
public static ushort GetPEArchitecture(string pFilePath)
{
ushort architecture = 0;
try
{
using (System.IO.FileStream fStream = new System.IO.FileStream(pFilePath, System.IO.FileMode.Open, System.IO.FileAccess.Read))
{
using (System.IO.BinaryReader bReader = new System.IO.BinaryReader(fStream))
{
if (bReader.ReadUInt16() == 23117) //check the MZ signature
{
fStream.Seek(0x3A, System.IO.SeekOrigin.Current); //seek to e_lfanew.
fStream.Seek(bReader.ReadUInt32(), System.IO.SeekOrigin.Begin); //seek to the start of the NT header.
if (bReader.ReadUInt32() == 17744) //check the PE\0\0 signature.
{
fStream.Seek(20, System.IO.SeekOrigin.Current); //seek past the file header,
architecture = bReader.ReadUInt16(); //read the magic number of the optional header.
}
}
}
}
}
catch (Exception) { /* TODO: Any exception handling you want to do, personally I just take 0 as a sign of failure */}
//if architecture returns 0, there has been an error.
return architecture;
}
执行上面的代码会返回下面两种可能的结果:
0x10b - PE32
0x20b - PE32+
前者是x86的后者是x64的
------------------
这么简单的问题百度一下就知道了嘛~
x86是32位系统,支持32位软件,最大支持内存为3.25GB
x64是64位系统(需要64位cpu支持),支持46位软件,兼容32位软件,最大支持内存为128GB
x86是 32位的 需要换系统 x64是 64位 要是你内存大于4个G就用64位 小于4G就用32位的系统 望采纳
相关内容