A Compiler Writing Journey

 

【acwj】00, Introduction 介绍_樱满无门的博客-CSDN博客

Learning Resources 学习资源

如果你想从一些编译器有关的书籍、论文和工具开始,我将高度推荐这个单子:

Existing Compilers 已有的编译器

While I’m going to build my own compiler, I plan on looking at other compilers for ideas and probably also borrow some of their code. Here are the ones I’m looking at:

在我将要构建自己的编译器时,我计划看一些其他的编译器的想法,可能还会借用它们的一些代码。以下是我正在看的:

  • SubC by Nils M Holm
  • Swieros C Compiler by Robert Swierczek
  • fbcc by Fabrice Bellard
  • tcc, also by Fabrice Bellard and others
  • catc by Yuichiro Nakada
  • amacc by Jim Huang
  • Small C by Ron Cain, James E. Hendrix, derivatives by others

In particular, I’ll be using a lot of the ideas, and some of the code, from the SubC compiler.

特别的,我将会从SubC编译器中借用很多想法和代码。

 

 

 

DoctorWkt/acwj: A Compiler Writing Journey (github.com)

 

A Compiler Writing Journey

In this Github repository, I'm documenting my journey to write a self-compiling compiler for a subset of the C language. I'm also writing out the details so that, if you want to follow along, there will be an explanation of what I did, why, and with some references back to the theory of compilers.

But not too much theory, I want this to be a practical journey.

Here are the steps I've taken so far:

There isn't a schedule or timeline for the future parts, so just keep checking back here to see if I've written any more.

Copyrights

I have borrowed some of the code, and lots of ideas, from the SubC compiler written by Nils M Holm. His code is in the public domain. I think that my code is substantially different enough that I can apply a different license to my code.

Unless otherwise noted,

  • all source code and scripts are (c) Warren Toomey under the GPL3 license.
  • all non-source code documents (e.g. English documents, image files) are (c) Warren Toomey under the Creative Commons BY-NC-SA 4.0 license.

 

 

posted @ 2023-08-01 15:38  sinferwu  阅读(64)  评论(0编辑  收藏  举报