What do you think of the compiler principle?

Source: Internet
Author: User

The principle of compiling is that people can understand the programming language, converted to the machine can understand the language, the compiler principle and technology is essentially an algorithmic problem, of course, because this problem is very complex, its solution algorithm is relatively complex. We learn the data structure and algorithm analysis is also talking about the algorithm, but the basic algorithm, in other words, the introduction of the algorithm, and the compiler principle of this course is to focus on a more focused solution of an algorithm you now feel boring, I think both with the compiler principle itself is relatively abstract knowledge, but also related to narrator. A good narrator will try to abstract the image and explain it to you in a rich and vivid example.

and is the compiler principle useful? I think this course is a real battle against the code, for a person with the pursuit of technology is not to be missed course, and the compilation principle can be said to be a microcosm of computer science. You learn it more is to pursue the nature of the programming language, such as it will be used in register allocation to the greedy algorithm, dead code will be used to eliminate the graph theory algorithm, data flow analysis used in the fixed-point algorithm, Lexical analysis and grammatical analysis of the use of finite state machines and recursive decline such important ideas and so on.

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 compiler principle, not necessarily to write their own language, but at least can be a lot of other programmers think cool things to see a bit, will not be the design of programming language to deceive too much. This is still very important, is the life of the Code workers and the future of the CTO of the difference, the loss of their own calculate it ...

For how to learn how to compile the principle of personal thinking: learn to compile the principle, because the sense of compiler writing to improve the comprehensive skills. Can Daniel give some advice? This is not the blind groping, because the Internet generally recommend some of the so-called classic textbooks, such as Dragon Book, Tiger Book and so on. But I feel like I'm eating these books. It's a bit tedious and mostly theoretical and not conducive to practice. What's more, one might say, now that there are so many tools to do parser, is it useful to learn? Of course it works. The data structures are encapsulated, so you don't have to learn to use them efficiently. Do parser also, no trained person, it is easy to summarize the grammar into excrement, or because the imagination is not enough to achieve their own needs. So it's still useful to learn the principles of compiling.

What do you think of the compiler principle?

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.