A small C compiler written in Python for learning purposes
SmallerC A small C compiler written in Python. Generates x64 Intel-format assembly, which is then assembled and linked by nasm and ld. Features See the tests folder for examples that compile. The function_test.c test is representative of the range of SmallerC. Math Operations: +, -, *, /, %, ++, –, &&, ||, ! Assignment: =, +=, -=, *=, /=, %= Comparison: ==, !=, = int type variables Control structures: if while for break continue Pointers (referencing and dereferencing) Arrays Function […]
Read more