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

  • Home
  • SEARCH
  • 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 8550113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:52:37+00:00 2026-06-11T13:52:37+00:00

What happens to the machine code/instructions that are generated by the JIT compiler when

  • 0

What happens to the machine code/instructions that are generated by the JIT compiler when a program is terminated or restarted. Does the JIT compilation occur again? If so, why would it use this approach?

To keep the scope simple, I would like to know specifically about .NET but for the benefit of others, answers about other implementations are welcome

  • 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-11T13:52:38+00:00Added an answer on June 11, 2026 at 1:52 pm

    Does the JIT compilation occur again?

    Yes, in general.

    If so, why would it use this approach?

    For one thing, it avoids questions about where the JITted code should be stored, how long for etc. For another, it avoids the code becoming invalid due to someone moving their hard drive to a machine with a different CPU, for example. I suspect it’s felt that JIT compilation is a relatively small part of the total time taken for most programs.

    Now you can “pre-JIT” an assembly using NGen – but there are some optimizations I believe it can’t make, and again the generated code becomes invalid if you change CPU etc.

    Also note that the .NET framework itself will run a background service when it’s first installed, to JIT compile the framework libraries (which will probably form the bulk of the code run for most apps). Presumably it has some smarts to recompile if necessary… I’ve never looked into it in too much detail.

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

Sidebar

Related Questions

What happens in the following code? Does the synchronization work? This is an interview
What happens when an application pool is recycled in IIS 7? Does IIS abruptly
What happens to http requests that are being processed when you stop or restart
What happens if I call startUpdatingLocation while startMonitoringSignificantLocationChanges is running? Does significantLocationChange monitoring get
My dev box is a Windows 7 (x64) machine. I've got some code (C#,
When I run some code on my machine then it behaves as I expect
I am working on maintaining someone else's code that is using multithreading, via two
I have an asp.net application that requires some editing of the machine.config file in
The output of the following program on my machine with ATI Firepro V8750 is
Everything is ultimately JITed into native machine code, so ultimately, we have a native

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.