Windows 64-bit program compilation and detection

Source: Internet
Author: User
Windows 64-bit program compilation and detection 1, 64-bit program compilation
The use of vs2010 can be more convenient to compile a 64-bit program.
Adjust the compilation configuration to x64.



The configuration is complete and the compiled program is 64 bits.

2, 64-bit program detection
Detects if a program is 64-bit and can be used with the DUMPBIN tool, which is a small tool that comes with vs.
The steps are as follows.

The corresponding commands are in turn:
Go to VC directory: cd D:\Program Files\Microsoft Visual Studio 10.0\VC
Configuring the VC command environment: Vcvarsall.bat
Detects if EXE is 64-bit: Dumpbin/headers f:\win64test.exe>f:\1.txt

The results of the run are output to f:\1.txt, and the results can be found to be 64-bit programs.


3, 64-bit program operation

64-bit program 64-bit system running normally, on 32-bit system running 64-bit program error is as follows.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.