Is C# partially interpreted or really compiled?

后端 未结 13 1120
别跟我提以往
别跟我提以往 2020-12-07 11:51

There is a lot of contradicting information about this. While some say C# is compiled (as it is compiled into IL and then to native code when run), others say it\'s interpre

13条回答
  •  鱼传尺愫
    2020-12-07 12:46

    I believe this is a pretty old topic.

    From my point of view, interpreted code will go through an interpreter, line by line translate and execute at the same time. Like example javascript, it is an interpreted code, when a line of javascript ran into an error, the script will just break.

    While compiled code, it will go through a compiler, translate all code to another form of code at once, without execute it first. The execution is in another context.

提交回复
热议问题