Skip to content

nwtgck/8cc-elc-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

8cc-elc-hs

wercker status

C Compiler written in Haskell powered by 8cc and ELVM.

Build

stack build --fast

NOTE: It takes very very long time to compile.

Install

stack install

Then, 8cc-hs and elc-hs commands will be available.

Compiler Usage

This section explains how to compile C program.

Input : example_c/hello.c
Output: hello executable

(echo hs && cat example_c/hello.c | 8cc-hs) | elc-hs > hello.hs
stack ghc hello.hs
./hello

Important thing is that 8cc-hs and elc-hs are written in pure Haskell.

References

About

C Compiler written in Haskell powered by 8cc and ELVM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published