How do C/C++ compilers work?

后端 未结 10 1677
旧时难觅i
旧时难觅i 2020-12-12 13:02

After over a decade of C/C++ coding, I\'ve noticed the following pattern - very good programmers tend to have detailed knowledge of the innards of the compiler.

I\'

10条回答
  •  抹茶落季
    2020-12-12 13:41

    Start with the dragon book....(stress more on code optimization and code generation)

    Go onto write a toy compiler for an educational programming language like Decaf or Cool.., you may use parser generators (lex and yacc) for your front end(to make life easier and focus on more imp stuff)....

    Then read gcc internals book along with browsing gcc source code.

提交回复
热议问题