Code Monkey home page Code Monkey logo

ci0's Introduction

ci0

C compiler in 512 lines.
512行のCコンパイラ

I editted "Mini C Interpreter" by Mr. Minoru Hatada for Mac or WebAssembly.
Minoru Hatada 氏の「ミニCインタプリタ」をMacやWebAssemblyで動くように修正

http://shopping2.gmobb.jp/htdmnr/www08/lp2016/chap15/mc15.html

Works on WebAssembly
WebAssemblyで動きます
https://fukuno.jig.jp/app/wasm/ci0/

For learners about the compiler!
コンパイラの学習にオススメです!

blog
http://fukuno.jig.jp/2581

build

for Mac & Ubuntu
gcc ci0.c -o ci0

for Windows
cl ci0.c

for WebAssembly (Mac)
sh c-wasm.sh
open localhost or your site

usage

ci0 test/test0-hello.c
ci0 -code test/test1-calc.c
ci0 -trace test/test2-while.c
ci0 test/test3-function.c
ci0 test/test4-recursive.c 20

thanks

ミニCインタプリタ
http://shopping2.gmobb.jp/htdmnr/www08/lp2016/chap15/mc15.html

Linuxをはじめよう!:printfを自作してみる
http://blog.livedoor.jp/hiroumauma/archives/1676244.html

Ace - The High Performance Code Editor for the Web
https://ace.c9.io

ci0's People

Contributors

taisukef avatar hasumikin avatar

Stargazers

Michael Richter avatar  avatar  avatar Alexandre Bencz avatar Kaleb Osborne avatar  avatar Shinya Sato avatar Sou avatar CHENG KUN avatar Laura Kirsch avatar  avatar Emilio Schininà avatar ねじくぎ avatar YSawc avatar  avatar Omar Sagga avatar sksat avatar yozu avatar ShankarShastri avatar Kota Mizushima avatar aka. bakaiku or @gdgdiler avatar GJ.Zhang avatar Tatsuya Shiozawa avatar Haroldo de Oliveira Pinheiro avatar irieda avatar fatefox avatar  avatar Tomohito Nakayama avatar Kamiya avatar Qinwen Shi avatar Javed Khan avatar bokuweb avatar  avatar 韦昭 avatar  avatar Kotaro Hirayama avatar みやしー avatar  avatar  avatar Kobayasi, Hiroaki avatar Subroh Nishikori avatar HIBINO Mitsuhiro avatar

Watchers

James Cloos avatar fatefox 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.