Personal opinions about the principles of compilation.

Source: Internet
Author: User

In the present, as a program ape can not not know the name of the compiler principle, the compilation principle is a computer science in miniature, is a major professional course, is designed 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. If we can skillfully use the principle of compiling, whether it is for our life or work has a great role in promoting.

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.

Some people may think that the principle of compiling is not useful, but the idea will benefit you for a lifetime, so that you can use the compilation principle to achieve the "God" feeling, you can write a more profound understanding of the program.

In fact, the principle of compiling does not seem to look like there is nothing, but later you estimate to become a lifelong yard, want to have greater progress space is not much possible, although the compiler principle in the work is not commonly used, but it is not necessarily used, anything has its existence necessary, otherwise the compiler principle can not exist in the world, such as the actual use of the compilation principle, cramming, do not know to come in time, learn more a technical self-defense is also good, after all, the compiler principle for our program apes also have a lot of inspiration and help.

Many people think that learning to compile the principle of difficult, I also checked the information, at the beginning of the time do not go to see what "Dragon Book", "Tiger book" such as the high difficulty of compiling the principles of books, that will seriously blow their patience and confidence, choose some relatively simple books to learn, the simplest application, you can lay down the morphology, Grammar analysis and other concepts, directly in your language to achieve, and sometimes you will find that write very "around", although there are a lot of regular expressions, then you can try to use a variety of tools: Yacc/lex, ANTLR, Flex/bison, parsec, ply. With what no need to care, smooth, to achieve the goal on the line. These tools are usually just convenient lexical, grammatical analysis, the semantics of their own processing, dissatisfied with the processing of simple text, want to analyze the real meaning of the program semantics, or want to understand the principles of their own tools, you can go to see those theoretical books.

If I really say how to learn the principles of compiling, I think the best way is to practice and practice. Although the compiler principle is called the principle of two words, but I think this is also a highly practical lesson, and the code is written in every step need to be handled with care, such as you write the parser of the production, as long as the change of a small place, will be like a butterfly effect is very large. In general, I think one way to learn the principles of compiling is to quiet down, patience to read a classic compiling principles of teaching materials, and then finish each exercise, and then write a toy compiler, you can rely on the power of LLVM easy to achieve this.

Or that sentence, all walk the heart, although the current compilation principle for us is still very unfamiliar, but for the increasingly development of science and technology today, and so we go out to work after the general use of the, the compiler principle is still very important drop.

Personal opinions about the principles of compilation.

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.