Skip to content

maekawatoshiki/rucc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RUCC

codecov

rucc is a small toy C compiler implemented in Rust.

REQUIREMENTS

  • latest Rust (recommend rustup)
  • LLVM 10.0
# ubuntu, or debian...
$ apt-get install llvm-10 llvm-10-dev

RUN

First, do test

$ cargo test

After the test exits successfully, you can try rucc easily with ./rucc.sh!

$ # slow (use binary created by `cargo build`)
$ ./rucc.sh [filename (*.c)]

$ # fast (use binary created by `cargo build --release`)
$ ./rucc.sh [filename (*.c)] --release

FORK AND PULL REQUEST LIFECYCLE

  1. fork https://github.com/maekawatoshiki/rucc repository

  2. clone your repository on local pc

    $ git clone git@github.com:youraccount/rucc.git
    $ cd rucc
  3. add maekawatoshiki upstream repository & fetch & confirm

    $ git remote add upstream git@github.com:maekawatoshiki/rucc.git
    $ git fetch upstream
    $ git branch -a
    
    * master
    remotes/origin/HEAD -> origin/master
    remotes/origin/master
    remotes/upstream/master
  4. fetch & marge upstream

    $ git fetch upstream
    $ git merge upstream/master
  5. pullrequest on GitHub

REFERENCES

I'm using 8cc as reference.

About

rucc is a tiny toy C compiler in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published