Skip to content

Latest commit

 

History

141 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell C- Compiler

This is an in-progress compiler for the C- language.

To compile a C source file for the d16 processor:

$(CC) -E -nostdinc -Iinclude/ file.c -o file.i
./cmm file.i file.s
d16 file.s -o file.o
d16-ld start.o lib/*.o file.o -o file

and optionally to run the file in the d16i emulator:

d16i -q file

Dependencies:

Build instructions

To compile the compiler, do the following:

cabal sandbox init  # set up a local enviroment
cabal install  # install dependnencies
cabal configure
cabal build
./dist/build/cmm/cmm <input> <output>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages