- Dart 99.8%
- C 0.2%
| bin | ||
| tests | ||
| .gitignore | ||
| analysis_options.yaml | ||
| mycompiler | ||
| pubspec.yaml | ||
| README.md | ||
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