+ 3
About C#'s compiler/interpreter
Have seen a couple of times the word "compiler" referring to the C# interpreter. My question is that: * Have two parts, a compiler and an interpreter? * Or its just a way of say it? And if its the first a short explanation of its working. Thx
5 Réponses
+ 2
Kiwwi this is because just like JAVA ,C# is first compiled to IL(intermediate language) which is then *interpreted*/*compiled* (depending on mood of JIT) to native assembly language of the host.
+ 2
They both do the same job that is converting source code (the one you write in text editor) to object code (one understood by computer)
But the difference is that interpreter do this line by line whereas compiler does it all at once
+ 1
Arsenic thx
I know what are both, but ask just relative to the two questions below
+ 1
Arsenic So C# got VM too
+ 1
Kiwwi yes.
That's because C# is mostly based on JAVA.