Skip to content
/ lcc42 Public
forked from nikon77/lcc42

lcc编译器源码注释工程

Notifications You must be signed in to change notification settings

rhinewg/lcc42

 
 

Repository files navigation

这是一个对lcc-4.2源代码进行注释和分析的工程. lcc是Christopher W.Fraser & David R.Hanson在《A Retargetable C Compiler: Design and Implementation》一书中介绍的编译器. 该工程的目标是对这个源码树进行注释和分析,最终将lcc移植到Ubuntu15-amd64系统下.

需要提前安装gcc 32位编译支持:

sudo apt-get install gcc-multilib

lcc-4.2编译步骤:

  1. ./config_on_ubuntu15-amd64.sh clean

  2. make all

  3. make test

  4. make triple

生成的可执行文件生成在bin目录中.

当前已知的问题: make test阶段,test suite中的paranoia.c和yacc.c未通过编译正确性测试。

About

lcc编译器源码注释工程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.9%
  • Shell 3.3%
  • Makefile 1.3%
  • C++ 1.0%
  • HTML 0.6%
  • Roff 0.5%
  • Yacc 0.4%