f******e 发帖数: 582 | 1 Could someone recommend a book/paper that shows the internal working
mechanisms of GNU GCC?
(not how to use gcc, but how gcc works.)
Thanks a lot. |
S*A 发帖数: 7142 | 2 front end is just C parsing and turn into internal IR.
The parsing itself is pretty complicate but the rules are actually
not very hard to understand.
The back end is where the interesting stuff happening.
If you just want to study how real compiler works. LLVM
is a much better start. The project is much cleaner compare
to gcc.
【在 f******e 的大作中提到】 : Could someone recommend a book/paper that shows the internal working : mechanisms of GNU GCC? : (not how to use gcc, but how gcc works.) : Thanks a lot.
|
G*****7 发帖数: 1759 | 3 +1 llvm
【在 S*A 的大作中提到】 : front end is just C parsing and turn into internal IR. : The parsing itself is pretty complicate but the rules are actually : not very hard to understand. : The back end is where the interesting stuff happening. : If you just want to study how real compiler works. LLVM : is a much better start. The project is much cleaner compare : to gcc.
|