Wednesday, June 11, 2025

Testing my compiler against Test Suite of compiling C tests

I added Multidimensional Arrays in C and Pointers to my Compiler. I added Subscripting, pointer arithmetic, Derefencing and Addressing, Compound Initializers and Static Arrays.

I tested the Compiler against C tests for validating correct assembly code.

The tests run from the beginning to the end, so every feature is tested and validated.


This is one of the tests of the compiler, pointer difference validation:

This is the final assembly language file, it is real x86 code and when it runs it produces correct results.

If you want to look at the code:

Compiler Code




No comments:

Post a Comment