How to see the principle of compiling

Source: Internet
Author: User

1. As I went into my sophomore study, I realized a course called compiling principles, and at first I didn't know much about this course, what was the principle of compiling? So I read the preface of the book and the relevant information on the Internet, the result is that the compiling principle is a major professional course of computer science, the purpose is to introduce the general principles and basic methods of compiling program construction. The content includes language and grammar, lexical analysis, parsing, grammar-guided translation, intermediate code generation, storage management, code optimization, and target code generation. The compiling principle is an important specialized course of computer professional setup. Although only a few people engaged in the work of compiling, but this course in theory, technology, methods to provide students with systematic and effective training, to improve the quality and ability of software personnel. Compiling principle has always been an important course of computer related majors at home and abroad, its knowledge structure runs through programming language, system environment and architecture, meanwhile, its theoretical foundation includes many important aspects of computer disciplines, such as formal language and automata, data structure and arithmetic. In general, the compiler principle has the role of undertaking to contact us before the knowledge we learned and let us in-depth learning of the source of language.

2. What are the benefits of learning the principles of compiling? Online netizens have given us a few points that I think are very useful for our future study,

1, it can be easier to understand in a language what is the equivalent of the wording, which is a difference
2, can be more objective to compare the differences between different languages
3, more difficult to be a particular language of the advocates of the flicker
4, learning a new language is more efficient and higher
5, in fact, from language A to language B is a common demand, learn how to compile principles to deal with such requirements will be more 3. What is the loss of not learning the principles of compiling? Do not learn the principle of compiling, may always give a variety of compiler to the people as slaves, that writing programs can only follow the language philosophy they designed to do. Learn the principles of compiling, not necessarily to write their own language, but at least can be a lot of other programmers think cool things to see a bit more thoroughly.         This way we don't even know how to create a compiled language, but only when we use someone else's build language.    4. How to learn the principle of compiling? "Compiling principle" is generally the name of the undergraduate or postgraduate course, in general, the main concern is the theoretical part, from the formal language and automata to introduce a variety of grammar and automata knowledge, this knowledge "dragon book" [1] is very classic, especially the previous chapters. And the practice of the part is more recommended to see "Tiger Book", the modern compiler structure, lexical analysis and syntax analysis implementation, code generation and virtual machine construction, etc. have a detailed description, is a very good guide, I wrote the first compiler is in accordance with the Tiger book. It is very important to read more books, so you can go to the library to find the book about compiling principle.

How to see the principle of compiling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.