About C#'s compiler/interpreter | Sololearn: Learn to code for FREE!
+ 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

1st Aug 2020, 1:12 PM
Kiwwi#
Kiwwi# - avatar
5 odpowiedzi
+ 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.
1st Aug 2020, 1:23 PM
Arsenic
Arsenic - avatar
+ 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
1st Aug 2020, 1:15 PM
Arsenic
Arsenic - avatar
+ 1
Arsenic thx I know what are both, but ask just relative to the two questions below
1st Aug 2020, 1:16 PM
Kiwwi#
Kiwwi# - avatar
+ 1
Arsenic So C# got VM too
1st Aug 2020, 1:44 PM
Kiwwi#
Kiwwi# - avatar
+ 1
Kiwwi yes. That's because C# is mostly based on JAVA.
1st Aug 2020, 1:47 PM
Arsenic
Arsenic - avatar