サンプル集 |
■VC ■C# ■Java ■BorlandC ■LinuxC ■MS-DOS ■bash ■Excel VBA ■VBScript ■PHP ■HTML ■perl ■iPhone ■Android ■Lua ■other |
Linuxコマンド |
用語集 |
debian メモ |
apache2 メモ |
MySQL メモ |
Oracle メモ |
HOME |
Visual Studio Tools の dumpbin コマンドを使ってDLLなどがx86かx64かを調べます。
◆環境OS | Windows 7 Professional Service Pack 1 64bit |
---|---|
Visual Studio | Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel |
[Microsoft Visual Studio 2010]-[Visual Studio Tools]-[Visual Studio コマンド プロンプト (2010)]を起動します。 起動後、dumpbin コマンドで指定したバイナリファイルがx86かx64かを調べます。 dumpbin の出力は長いので findstr で絞り込みます。
>dumpbin /headers spstb.exe | findstr machine
14C machine (x86)
32 bit word machine
14C machine (x86)
32 bit word machine
machine (x86) と表示されましたので、このexeファイルは x86 であることがわかりました。
64bitの場合、以下の結果が出力されました。
>dumpbin /headers spstb.exe | findstr machine
8664 machine (x64)
8664 machine (x64)
Copyright (C) 2014 ymlib.com