Skip to content

Compiler for a subset of ANSI C, base on virtual machine (unfinished)

License

Notifications You must be signed in to change notification settings

jiahao42/LambCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LambCompiler v0.4

This is a simple compiler for a subset of ANSI C. By now, it can generate the pseudo-code without type-checking.

1. Before Compilation

See LambCompiler/src/config.h, make sure it is the desired configuration. The default configuration is Test Mode, which means it use the previously defined test data.

2. How to compile

Make sure you have installed GNU Make.

  • Run make under LambCompiler/ to compile the compiler, the executable file is under LambCompiler/bin

3. Usage

3.1 Normal Mode

  • ./compiler [filename]
  • ./compiler -v
  • ./compiler -h

3.2 Test Mode (no parameter needed)

  • ./compiler

4. Sample

About

Compiler for a subset of ANSI C, base on virtual machine (unfinished)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages