f



How to tell if a program compiled as 32-bit or 64-bit? (Windows Vista 64)

	I think I have finally gotten my Visual C++ Express 2008 to
use the 64-bit compiler in the Windows 7 SDK. I THINK! But I want to
make sure. I've compiled some programs with the 'target platform' set
to x64 in VC Express, but how do I tell if they really compiled into
AMD64 code?

				Thanks,
					Roy
0
AlaBadRoy (3)
10/24/2009 12:38:11 PM
comp.programming 11491 articles. 2 followers. Post Follow

3 Replies
1259 Views

Similar Articles

[PageSpeed] 43

"Bad Roy" <AlaBadRoy@yahoo.com> wrote in message 
news:e1t5e51mvn3hd721l4or8l1qr2vjiff069@4ax.com...
> I think I have finally gotten my Visual C++ Express 2008 to
> use the 64-bit compiler in the Windows 7 SDK. I THINK! But I want to
> make sure. I've compiled some programs with the 'target platform' set
> to x64 in VC Express, but how do I tell if they really compiled into
> AMD64 code?
>

if it is a long-running process, you can use CTRL-ALT-DEL to get to task 
manager, and see if there is a '*32' by the name (although, verify that 
there are some other processes which do have this, to make sure this feature 
is present).

alternatively, one can use the CMD shell, and then dumpbin, and see what it 
says...

or via "printf("%p\n", &foo);" or similar (x64 if you see 16 hex digits, 
rather than 8), not that printf generally only works in console apps though, 
and doesn't do anything in GUI apps (nevermind that MSVC++ may complain when 
accessing the C API, as MS for whatever reason thought this was a good 
idea...).

....


> Thanks,
> Roy 


0
cr88192355 (1928)
10/24/2009 4:04:26 PM
Bad Roy wrote:

> 	I think I have finally gotten my Visual C++ Express 2008 to
> use the 64-bit compiler in the Windows 7 SDK. I THINK! But I want to
> make sure. I've compiled some programs with the 'target platform' set
> to x64 in VC Express, but how do I tell if they really compiled into
> AMD64 code?

With Win32 api.
Ask on Win32 group comp.os.ms-windows.programmer.win32
0
georges21 (2)
10/24/2009 4:31:35 PM
"Bad Roy" wrote:

> I've compiled some programs with the 'target platform' set
> to x64 in VC Express, but how do I tell if they really compiled into
> AMD64 code?

Check the machine word in the PE header. It should be set to 0x8664
for AMD64. It should _not_ be 0x0200 (Intel 64) or 0x014C (I386).

For more info ask in a Windows group.


0
not172 (131)
10/24/2009 5:17:17 PM
Reply:

Similar Artilces:

Windows 7 64 bit
My server works under Windows 7 Professional 64 bits, my FileMaker Pro10 Advanced is 32 bits. FM has to connect to a MySQL-database, which driver should I use? The 64bits or the 32bits version? And if 64, can FM communicate via the 64bits driver with MySQL? Or should I better downgrade W7 to 32bits? Harry <a@b.c> wrote: > My server works under Windows 7 Professional 64 bits, my FileMaker > Pro10 Advanced is 32 bits. > FM has to connect to a MySQL-database, which driver should I use? > The 64bits or the 32bits version? I never used Filemaker. And I try to sta...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edition V8.1.2 64Bit W3KSERVER 12 284 IBM DB2 Connect Applic Server Edit...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edition V8.1.2 64Bit W3KSERVER 12 284 IBM DB2 Connect Ap...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edi...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edi...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edi...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enter...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edi...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enter...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enter...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edition V8.1.2 64Bit W3KSERVER 12 284 IBM DB2 Connect Ap...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enterprise Server Edition V8.1.2 64Bit W3KSERVER 12 284 IBM DB2 Connect Applic Server Edit...

64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! Windows Liberty 64bit 8403 Windows Limited Edition 64 Bit Edition 8764 Microsoft SQL Server 2000 Developer Edition 64 Bit 12 000 ----------------------------------------------------------------------- IBM DB2 UNIVERSAL CONNECT ENTERPRISE EDITION V8.1.2 64BIT 12 211 IBM DB2 Administration Client V8.1.2 64bit W3KSERVER 12 266 IBM DB2 UDB Enter...

compiling on 32-bit vs. 64-bit (gcc fails on 64-bit)
On a 64-bit Scientific Linux 5.4 machine, I get the following when I try to compile the basic "Hello world" program: [root]# g++ -Wall hello.cc -o hello /tmp/ccglIDXK.s: Assembler messages: /tmp/ccglIDXK.s:10: Error: suffix or operands invalid for `push' /tmp/ccglIDXK.s:38: Error: suffix or operands invalid for `push' /tmp/ccglIDXK.s:55: Error: suffix or operands invalid for `push' /tmp/ccglIDXK.s:79: Error: suffix or operands invalid for `push' /tmp/ccglIDXK.s:81: Error: suffix or operands invalid for `push' /tmp/ccglIDXK.s:85: Error: suffix or operand...

Web resources about - How to tell if a program compiled as 32-bit or 64-bit? (Windows Vista 64) - comp.programming

Microsoft Compiled HTML Help - Wikipedia, the free encyclopedia
Microsoft Compiled HTML Help is a Microsoft proprietary online help format, consisting of a collection of HTML pages, an index and other navigation ...

compiled st - kilda to rosstown extension - Flickr - Photo Sharing!
Explore Cameron Stewart's photos on Flickr. Cameron Stewart has uploaded 431 photos to Flickr.

21 Foot Rule Less Talk and More action (compiled and shortened) - YouTube
http://www.21footrule.com It is one thing to read about the 21 foot rule, it is another to actually see it done. Many times people think that ...

Hillary and Bill Clinton compiled disloyalty 'hit list', new book claims
Hillary and Bill Clinton keep a detailed "hit list" of everyone who has crossed them during more than 20 years at the apex of American politics, ...

Steve Jobs videos compiled into ultimate collection
... New York Times on Twitter, a pretty extensive collection of Steve Jobs’ interviews, keynotes, product demos, and rare company video was compiled ...

NRA compiled secret gun registry on “tens of millions” of gun owners
If you really believe the government is Hitler, then why aren't they capable of stealing the NRA's gun registry? .

Bot-written plays compiled from YouTube troll comments hit Kindle store
... =^.^= .” Two programmers, Germany-based Luc Gross and Austria-based Bernhard Bauch, are responsible for the series of plays, which were compiled ...

"Within the past 24 hours, user-contributed link aggregator reddit.com compiled a 'secret list' of banned ...
"... including such reputable news sites as The Atlantic, Business Week, PhysOrg and ScienceDaily." Reddit is a site that claims to be all for ...

Thank goodness the NSA had the sense to put funnyman Art Buchwald on the watch list it compiled for President ...
... which turned to the FBI, and eventually the NSA "expanding the watch list to include domestic terrorist and foreign radical suspects" compiled ...

Fed Once-Secret Loan Crisis Data Compiled by Bloomberg Released to Public
Bloomberg News today released spreadsheets showing daily borrowing totals for 407 banks and companies that tapped Federal Reserve emergency programs ...

Resources last updated: 2/5/2016 2:10:19 AM