Giter Club home page Giter Club logo

compiler's Introduction

Compiler Build Status

A simple-C language compiler


Introduction

Compile the simple-C program into machine code.

暂将实现分为11个阶段: 词法分析 语法分析 语义动作 语义分析 栈帧布局 翻译 规范化 指令选择 控制流分析 数据流分析 寄存器分配 代码流出.

已完成:词法分析 语法分析

相关内容:各阶段源码 各阶段说明

Requirements

  • Linux OS

  • GCC

  • Flex

    sudo apt-get install flex
    
  • Bison

    sudo apt-get install bison
    

References

"Modern Compiler Implementation in C"
http://www.cs.princeton.edu/~appel/modern/c
<dt>"Modern Compiler Implementation in C"</dt>
<dd>http://www.cs.princeton.edu/~appel/modern/c</dd>

<dt>"ANSI C grammar (Lex)"</dt>
<dd>http://www.quut.com/c/ANSI-C-grammar-l-1998.html</dd>

<dt>"ANSI C grammar (Yacc)"</dt>
<dd>http://www.quut.com/c/ANSI-C-grammar-y-1998.html</dd>

<dt>"Lex和Yacc应用方法"</dt>
<dd>http://www.cppblog.com/woaidongmao/archive/2008/09/20/62322.aspx</dd>

Keywords

Compiler Lex Yacc LLVM

License

GPLv3

Bitdeli Badge

compiler's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.