This book tells the development process of a real compiler. The source language is a new language based on C language and appropriately simplified definition. It is called SC language (simplified C language). The target language is the familiar Intel x86 machine language. In this book, readers will see the complete process from SC language definition to SCC compiler development. The SCC compiler introduced in this book does not rely on compiler automatic generation tools such as Lex and Yacc. It is written purely by hand, making it easier to learn and understand. In order to generate EXE files that can be run directly, this book also implements a linker. After reading this book, readers will know how to define a brand new language and how to write a real compiler and linker. This book is suitable for all types of programmers and program development enthusiasts to read, and can also be used as a practical textbook for compilation principles courses in colleges and universities. Solemn statement: The author of the source code of this book has applied for copyright and is only for readers' study and research purposes. Without the permission of the author, any organization or individual is strictly prohibited from distributing it on the Internet or using it for commercial purposes. The author reserves the right to initiate legal proceedings for infringement. For questions related to the source code, please contact the author.
Reader comments
This book is very practical! For those of us who are looking for a job, it is like a key that opens the door to system software development. I particularly agree with the views mentioned in the book that compiler design practices are really important. Just like when I was learning theoretical knowledge before, I always found it a bit difficult to understand. But after reading the introduction of this book and trying to write a compiler and linker myself, many problems were solved at once. And I found that some concepts that I used to hate can now be easily understood. In short, I think this book is not only suitable for programmers and development enthusiasts to read, but also can be used as a practical teaching material for compilation principles courses in colleges and universities. It is worth reading!
This book is very practical! For those of us who are looking for a job, it is like a key that opens the door to system software development. I particularly agree with the views mentioned in the book that compiler design practices are really important. Just like when I was learning theoretical knowledge before, I always found it a bit difficult to understand. But after reading the introduction of this book and trying to write a compiler and linker myself, many problems were solved at once. And I found that some concepts that I used to hate can now be easily understood. In short, I think this book is not only suitable for programmers and development enthusiasts to read, but also can be used as a practical teaching material for compilation principles courses in colleges and universities. It is worth reading!