1. Way One
If you have a hex editor program, just open your file with it and shortly after the standard header intro stuff (like "This program cannot be run
in DOS mode...") you will see either
"PE..L" (hex code: 504500004C) = 32 bit
or
"PE..d†" (hex code: 504500006486) = 64 bit
2. Way Two
dumpbin
This is a tool which is included in vc package.
Run dumpbin in command line as followings.
dumpbin /HEADERS glslangValidator.exe
The outputs are as followings
Microsoft (R) COFF/PE Dumper Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file glslangValidator.exe
PE signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
14C machine (x86)
5 number of sections
578FF4EA time date stamp Thu Jul 21 06:02:18 2016
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
102 characteristics
Executable
32 bit word machine

本文介绍了两种确定文件是32位还是64位的方法:一是使用十六进制编辑器查找特定的签名;二是利用dumpbin工具输出文件头信息进行判断。

4972

被折叠的 条评论
为什么被折叠?



