IL Code & JIT in .NET

What is IL?

  • IL code (intermediate code) or half compiled code, it’s creates at compile time.
  • When this program will run at user system, this run time IL code is converted into machine code by JIT (just-in-time) compiler.
  • JIT Compiler converted IL Code into Machine Code.
  • By using ILDASM tool(IL Disassembler open the Tool directly from the Visual Studio) we can view a IL code of a DLL or EXE.
  • In order to view IL code using ILDASM, go to visual studio command prompt (CMD)and run “ILDASM.EXE”. Once ILDASM is running you view the IL code.

What is Just-In-Time(JIT) Compiler in .NET

Working of JIT Compiler
  • The JIT compiler converts the Microsoft Intermediate Language(MSIL) or Common Intermediate Language(CIL) into the machine code this is done before the MSIL or CIL can be executed.
  1. Pre-JIT Compiler :
  • Much of the disadvantages of the JIT compiler can be handled using the Ahead-of-time (AOT) compilation. This involves compiling the MSIL into machine code so that runtime compilation is not required and the machine code file can be executed natively.

I hope this article has been helpful for you 😃!!!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Singletons in Game Development

Unit Tests Slow Me Down

9 Steps for building a CI/CD pipeline with Travis-CI, Docker and AWS

Why Business Value eats DevOps for breakfast

Scraping Youtube Trending Videos Using Python Part 1

Also pattern alone require lose.

MetaLife GENESIS #airdrop Is Now Live!

Game Dev Digest Issue #108 — Work Smarter, Not Harder

Issue #108 - Work Smarter, Not Harder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shivani Nalawade

Shivani Nalawade

More from Medium

Safe Unlink

CS373 Spring 2022: Antoney Ejimadu

CS373 Spring 2022: Audie Bethea

CS373 Spring 2022: Nathan Whyte