What is the purpose of x86, x64 and anycpu platform switch in C# compiler?

 Posted by Lokesh76 on 5/22/2011 | Category: C# Interview questions | Views: 4115 | Points: 40
Answer:

When you build any assembly in .Net environment that time you need to used any of these /platform switch or either in Visual Studio pick the platform value inside configuration manager settings.
/platform:x86 - x86 compiles your assembly to be run by the 32-bit, x86-compatible common language runtime.
/platform:anycpu - anycpu (default) compiles your assembly to run on any platform.
/platform:anycpu - x64 compiles your assembly to be run by the 64-bit common language runtime on a computer that supports the AMD64 or EM64T instruction set.
/platform:anycpu - Itanium compiles your assembly to be run by the 64-bit common language runtime on a computer with an Itanium processor.


Source: http://msdn.microsoft.com/en-u | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response