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 8644605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:20:17+00:00 2026-06-12T12:20:17+00:00

In VS2012 (and previous versions…), you can specify the target platform when building a

  • 0

In VS2012 (and previous versions…), you can specify the target platform when building a project. My understanding, though, is that C# gets “compiled” to CIL and is then JIT compiled when running on the host system.

Does this mean that the only reasons for specifying a target platform are to deliberately restrict users from running the software on certain architectures or to force the application to run as 32 bit on a 64 bit machine? I can’t see that it would be to do with optimization, as I guess that happens at the CIL–>Native stage, which happens Just-In-Time on the host architecture?

This MS Link does not seem to offer any alternative explanation and I can find no suggestion of the fact that you should, for example, release separate 32 / 64 bit versions of the same application – it would seem logical that something compiled for “anycpu” should run just as well and, again, optimizations will be applied at the JIT stage.

  • 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-06-12T12:20:18+00:00Added an answer on June 12, 2026 at 12:20 pm

    Does this mean that the only reasons for specifying a target platform are to deliberately restrict users from running the software on certain architectures or to force the application to run as 32 bit on a 64 bit machine?

    Yes, and this is critical if you’re using native code mixed with your managed code. It does not change what gets optimized at runtime, however.

    If your code is 100% managed, then AnyCPU (or the new AnyCPU Prefer 32-Bit) is likely fine. The compiler optimizations will be the same, and the JIT will optimize at runtime based on the current executing platform.

    I can find no suggestion of the fact that you should, for example, release separate 32 / 64 bit versions of the same application

    There is no reason to do this unless you’re performing interop with non-managed code, in which case, that will require separate 32 and 64 bit DLLs.

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

Sidebar

Related Questions

Can programs build in VS2012 with platform toolset Visual Studio 2012 (v110) run on
in previous versions of Visual Studio, you could collapse the html blocks, but that
Previous investigation in Can I make a table of String + lambdas that have
My previous demo was an XNA project that had a game window, as well
I have a VC++ project in VS2010 that is linking to some dll's built
After running Code Analysis in VS2010 beta (FxCop for previous versions) I'm getting the
I've heard that VS2012 beta and Windows 8 Customer Preview will be available for
In VS2012 RC, I noticed that the test list editor, tests view and test
Currently working on a project that is being developed in VS2010. I'm running Windows
I have a .lib file created with previous versions of visual studio, perhaps 2003

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.