什么是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位的系统 望采纳

相关内容

热门资讯

CF手游星见奇遇影游全攻略 剧... 5GWAN手游网(www.5gwan.net)2026年04月24日:大家好,我是5GWAN小编莉莉...
玩法师总是被射手骂?总是被秒总... 这篇文章依然是复盘,依然是借用策划的直播对局,中路的对局,这一次片段比较少,只有两段,但是背后的细节...
原创 L... 英雄联盟LPL于4月4日,正式开幕,而韩国LCK联赛第二赛段则是迎来了宿命对决。昔日队友,如今变成针...
《剑网3》1.5版暗影千机公测... 4月23日,《剑网3》全新1.5版本资料片“暗影千机”正式迎来公测。 对于一款运营了十七年的MMO而...