(RPM) If you know if the DLL file is for a 32-bit system or a 64-bit system?

Source: Internet
Author: User
Tags net command reflector

This article is reproduced in the article, the original address: http://www.cnblogs.com/qguohog/archive/2011/09/13/2174897.html, only records for subsequent use, if there is infringement please notify the deletion.

When you publish a DLL, you can choose to compile to x86 mode, x64 mode, and any CPU mode. So how do you know what system is supported for a DLL file that has already been published?

Method One: Reflector

For. Net DLL files, use the Reflector tool to identify:

The Platform target indicates the target system selected by the DLL at compile time.

Method Two: CorFlags.exe tools

With the CorFlags tool Vistual Studio.NET, open the vs.net command window first:

Input Coreflags <assembly path>:

Where the value of PE and 32BIT can see the number of system bits supported by the DLL:

anycpu: PE = PE32 and 32BIT = 0
x86: PE = PE32 and 32BIT = 1
x64: PE = pe32+ and 32BIT = 0

(Refer to: http://blogs.msdn.com/b/gauravseth/archive/2006/03/07/545104.aspx)

Method Three: Dumpin.exe tools

the Dumpin commands in Vs.net tools allow you to view:

Dumpbin/headers <assembly path>

View machine-related properties to identify the number of system bits it supports.

The method can also view non-. NET compiled DLL information.

(RPM) If you know if the DLL file is for a 32-bit system or a 64-bit system?

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.