/c2asmjs

A compiler that turns C code into LLVM intermediate language code. This LLVM code can then be compiled to ASM JS code readable by the browser thanks to Emscripten compiler. This project has been built using Rex & Racc, the equivalent of the famous Lex & Yacc compilation libraries in Ruby

Primary LanguageJavaScript

c2asmjs

Install

gem install rake
gem install rexical
gem install racc

Build

rake build

Compile

rake compile[<filename>]

Run

rake run[<filename>]

For running samples/sample1.c: rake run[samples/sample1.c]

Test

rake test[<filename>]

All tests

rake tests

Clean

rake clean