Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7695203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:29:42+00:00 2026-05-31T21:29:42+00:00

Are there different .net CLRs for x86 and x64 ? decimal i = 89;

  • 0

Are there different .net CLRs for x86 and x64 ?

decimal i = 89;
i=i++;

Will above code have different native code generated by CLR on x86, x64 ?

UPDATE:
If yes then when i install visual studio on my machine will install both the CLR versions independent of machine bits ? Has it to do something with performance ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:29:44+00:00Added an answer on May 31, 2026 at 9:29 pm

    Yes, there is both a 32-bit and a 64-bit specific JITter. Which one your code will run under depends both on the host environment/process that loaded the CLR and the assembly itself.

    When you build your assemblies you can choose whether it will target x86, x64, or “AnyCPU”.

    • AnyCPU will run as 32-bit under 32-bit and 64-bit under 64-bit.
    • 32-bit will run as 32-bit on 32-bit and will run under WOW64 on 64-bit.
    • 64-bit won’t run under 32-bit, but will run as 64-bit on 64-bit.

    There is also a case for ‘legacy’ assemblies which were built before this facility was introduced. I believe they act the same as the 32-bit ones.

    Note that if your assembly has any 32-bit native dependencies then you should also mark it as 32-bit, otherwise it will be loaded as 64-bit in a 64-bit environment and the dependencies will fail to load.

    To answer your updated questions:

    64-bit machines will have both the 32-bit and the 64-bit CLR installed. The 32-bit is needed to run 32-bit assemblies under WOW64. (For example, Visual Studio is 32-bit!)

    32-bit can sometimes run faster because pointers are smaller, so there is less cache/memory wasted on them. On the other hand, 64-bit mode has more registers available for the JITter to use. It depends on the characteristics of the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've downloaded log4net, but I've realised that there are different assemblies for .NET and
Is there any performance different between hosting your asp.net in mono on linux and
In x86 GNU Assembler there are different suffixes for memory related operations. E.g.: movb,
There are a couple of different .NET XSLT functions that I see used in
I have two classes A and B in two different .NET assemblies: AssemblyA and
I have two different asp.net web applications both referencing the same dll e.g. SharedLibrary.dll
I don't know if there's a different Css usage in Asp.net but I just
I have a silverlight project and a ASP.net Project in the solution. there are
Why are there 2 different ways lock memory in place in .NET? What is
Is it possible to clear asp.net cache? Is there different ways to do that?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.