In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "whether C# is a compiled language or an interpreted language". Interested friends may wish to take a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn whether C# is a compiled language or an interpreted language.
"C # Java is an interpretive language? Oh my god"
"quoting vls:C# Java is an interpretive language? Oh my god
Hehe, I'm surprised, too. "
"quoting DiggingDeeply:@vlsC# is not an explanatory line language, so what is the use of JIT?
Ignorance is not pitiful. Ignorance is pitiful if you don't know yourself. "
". No, no, no. no, no, no. But if it is because it is" changing and executing at the same time ", use it as an explanatory language.... it can only be said that you see the appearance but do not grasp the essence."
Very speechless, since you think others are ignorant, then show your knowledge to the ignorant, will you?
All this aside, who can define compiled and interpreted types. Without exception, it is either someone's blog, or a web page searched, or a lack of words will disappear, which is not sufficient as an argument?
I looked through the dragon book yesterday and did not give a detailed definition of these two concepts, so it can be seen that it is very difficult to make a precise definition of the two concepts.
In the book (by Michaei L. Scott), I found the relevant definitions and explanations, with special excerpts as follows
Compilation and Interpretation
The compilation and execution of a program in a high-level language is roughly as follows:
The compiler translates the high-level language from the source code to its equivalent target program (the equivalent of translating from Chinese into Chinese) and then retires. At a later time, the user starts the target program to be executed by the operating system. Another way to implement a high-level language is to explain:
Unlike compilation, the interpreter runs during the execution of the target program (there is no target program at all, just compared to compilation). This execution process is completely controlled by the interpreter. In effect, the interpreter implements a "virtual computer", and its "machine language" is a high-level language. The interpreter reads one or more statements at a time and performs the corresponding operations in its own way. Generally speaking, interpretation is more flexible than compilation; compilation generally has better performance. But some languages do use a mixture of the two:
The original text of the book: "if the initial stage of the translator is relatively simple, we will say that the language is" explained ". If the translator is complex, we say the language is "compiled". Now the distinction between the two is a little blurred, because "simple" and "complex" are both decorative terms, and because it is entirely possible to generate code with a compiler (a complex translation process). It is then executed by a complex virtual machine (interpreter). In this case, if the translator makes a thorough analysis of the program (rather than making some kind of "mechanical" transformation), and there is no strong similarity between the intermediate language program and the source program, we still say that the language is compiled. These two features-thorough analysis and non-trivial transformation-are iconic features that depict compilation. "
According to the above standards, first of all, CSC is only a "mechanical" translation of C # to IL, and there is a strong similarity between C # and IL, because the program code of the two is almost 100% convertible to each other (for example, reflector can reverse C # into IL or IL into C #).
At this point, I believe you have a deeper understanding of "whether C# is a compiled language or an interpreted language". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.