Showing posts with label 64bit. Show all posts
Showing posts with label 64bit. Show all posts
2014/12/02
dumbpin을 이용하여 dll, exe가 32bit인지 64bit인지 확인하기
dumpbin은 MS에서 제공하는 COFF/PE의 내용을 확인할 수 있는 CLI 프로그램으로 /HEADERS 옵션으로 파일의 헤더를 확인할 수 있다.
Header를 확인해 보면 해당 Dll 이나 Exe 파일이 32bit인지 64bit인지 확인할 수 있다.
32비트의 경우
D:\>dumpbin /HEADERS cv100.dll | more
Microsoft (R) COFF/PE Dumper Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file cv100.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
14C machine (x86)
6 number of sections
45366940 time date stamp Thu Oct 19 02:49:52 2006
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
210E characteristics
Executable
Line numbers stripped
Symbols stripped
32 bit word machine
DLL
OPTIONAL HEADER VALUES
10B magic # (PE32)
6.00 linker version
-- More --
64비트의 경우
D:\>dumpbin /HEADERS cv100_64.dll | more
Microsoft (R) COFF/PE Dumper Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file cv100_64.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
8664 machine (x64)
6 number of sections
457E6508 time date stamp Tue Dec 12 17:15:04 2006
0 file pointer to symbol table
0 number of symbols
F0 size of optional header
2022 characteristics
Executable
Application can handle large (>2GB) addresses
DLL
OPTIONAL HEADER VALUES
20B magic # (PE32+)
8.00 linker version
-- More --
<
Original Post : http://neodreamer-dev.tistory.com/731
2010/10/08
Visual C++ 에서 64비트 정수 출력하기
__int64 i64 = 0x12341234abcdabcd;
<
char szDispBuf[1024];
sprintf_s( szDispBuf, 1024,
"%%d => %d \n"
"%%o => 0%o \n"
"%%x => 0x%x \n"
"%%X => 0x%X \n"
"%%I64d => %I64d \n"
"%%I64o => 0%I64o \n"
"%%I64x => 0x%I64x \n"
"%%I64X => 0x%I64X \n"
, i64, i64, i64, i64, i64, i64 );
TRACE("%s \n", szDispBuf );
Output:
%d => -1412584499
%o => 02215011064
%x => 0xabcdabcd
%X => 0x12341234
%I64d => 1311693408901639117
%I64o => 0110640443225363325715
%I64x => 0x12341234abcdabcd
%I64X => 0x12341234ABCDABCD
Original Post : http://neodreamer-dev.tistory.com/465
Subscribe to:
Posts
(
Atom
)