Wirth N. Compiler Construction / Вирт Н. Построение компиляторов
Compiler Construction
Wirth N. Compiler Construction, 06.2011. (копия)
Книга доработана с учётом возможности создания реального RISC-процессора на FPGA в дополнение к программе-эмулятору:
« Preface to the Revised Edition of 2011
This book appeared first in 1976 (in German). The source language used as simple example for the compiler was PL0, a subset of the language Pascal. The target computer had a stack architecture similar to the P-code interpreter used for many Pascal implementations. A strongly revised edition of the book appeared in 1995. PL0 was replaced by Oberon-0, a subset of Pascal’s descendant Oberon. For the target computer a RISC architecture replaced the stack architecture. Reduced Instruction Set Computers had become predominant in the early 1990s. They shared with the stack computer the underlying simplicity. The generated RISC-code was to be interpreted like the P-code by an emulator program. The target computers therefore were abstract machines.
In the present new edition Oberon-0 is retained as source language. The instruction set of the target computer is slightly extended. It is still called RISC, but its instruction set is complete like that of a conventional computer. New, however, is that this computer is available as genuine hardware, and not only as an emulator program. This had become possible through the use of a field programmable gate array (FPGA). The target computer is now specified as a text in the language Verilog, from which the circuit is automatically generated by a compiler, and then loaded into the FPGA’s configuration memory. The RISC thereby gains in actuality and reality. This in particular, because of the availability of a low-cost development board containing the used FPGA chip. Therefore, the presented system becomes attractive for courses, in which hardware-software codesign is taught, where a complete understanding of software and hardware is the goal.
May this text be instructive and useful not only for future compiler designers, but for all who wish to gain insight into the detailed functioning of hardware together with software.
Niklaus Wirth, Zurich, June 2011»
См. также
- http://www.inf.ethz.ch/personal/wirth/Articles/CompilerConstruction/ — страница книги с исходниками учебного компилятора на персональном сайте Вирта
Построение компиляторов
Вирт Н. Построение компиляторов. / Пер. с англ Борисов Е. В., Чернышов Л. Н. — М.: ДМК Пресс, 2010
OZON / форум
CD: Компилятор Оберон-0 — Подсистема Oberon0 для BlackBox / Оригинальные тексты компилятора
Аннотация из книги:
Книга известного специалиста в области информатики Никлауса Вирта написана по материалам его лекций по вводному курсу проектирования компиляторов. На примере простого языка Оберон-0 рассмотрены все элементы транслятора, включая оптимизацию и генерацию кода. Приведен полный текст компилятора на языке программирования Оберон.
Для программистов, преподавателей и студентов, изучающих системное программирование и методы трансляции.

