I'm learning compiler course and I'm confused. My question is about .NET and Java because both of them are using virtual machines (CLR and JVM), and as far as I know for example in C#, a programming language like C# is compiled into IL and passed to the CLR and then the JIT, and here I don't know how the JIT works - line by line, or does it read all IL code and then executes?
Can anyone explain this to me?