In this article we are going to learn some important concepts like IL, JIT...
What is IL?:
- IL code stands for intermediate code.
- 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.
- IL code also known as Common intermediate language code or Microsoft intermediate language code.
- In Microsoft visual studio supports too many language. In same different user have different machine configuration and different operating system whose unknown to visual studio. That is the main problem.
- To avoid this problem Microsoft Creates a code that is called as IL Code.
- It’s called as IL code or half compiled code, it’s creates at compile time.
What is JIT ?
- JIT stands for just-in-time compiler.
- It converts the MSIL code to CPU native code as it is needed during code execution.
- It is called just-in-time since it converts the MSIL code to CPU native code; when it is required within code execution otherwise it will not do nothing with that MSIL code.
There are three types of JIT:
1.Pre-JIT Compiler (Compiles entire code into native code completely).
2.Econo JIT Compiler (Compiles code part by part freeing when required).
3.Normal JIT Compiler (It compiles only those methods that are called at runtime).
Strongly Typed:
- general: C# is used in a strongly typed manner, meaning: a variable is declared of a specific Type either: string, int, a user-defined type, etc and cannot, later, be assigned a value of a different type.
- C# is strongly typed because the compiler will detect and flag these errors at compilation time.
Conversion:
- The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type.
- Example:
For more understanding watch below video :
Thank you!!!!!