Skip to content

ManeraKai/c-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A C Compiler written in Dart

Following the book: WRITING A C COMPILER 978-1-7185-0042-6

dart compile exe bin/main.dart -o mycompiler

./mycompiler tests/test.c --codegen

~/Tests/writing-a-c-compiler-tests/test_compiler ./mycompiler --chapter 10 --extra-credit -f ~/Tests/writing-a-c-compiler-tests/test_compiler ./mycompiler --chapter 10 -f

~/Tests/writing-a-c-compiler-tests/test_compiler ./mycompiler --chapter 10 --extra-credit -f --skip-invalid --stage codegen

./mycompiler tests/test.c && ./tests/test; echo $?

./mycompiler -c -g tests/test.c && ./mycompiler -c -g tests/external.c gcc -g -o tests/test tests/test.o tests/external.o ./tests/test; echo $?

./mycompiler tests/test.c gcc -g -o tests/myex tests/test.s ~/Tests/writing-a-c-compiler-tests/tests/chapter_9/valid/stack_arguments/stack_alignment_check_linux.s

About

A C Compiler written in Dart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors