/ccompiler

C Compiler

Primary LanguageC

C compiler

Build all with CMake

Implementation of a C compiler (in C, obviously).

The references from Kernigham & Ritchie "The C programming language" were used for the syntax implemented in this compiler. There are no requirements about the target platform for this compiler but, it was created using gcc on an Ubuntu 20.04 so, it's almost guaranteed that it will run smooth on any Linux flavour.

The preprocessor was implemented based on GNU reference: GNU ppc

Libraries, Packages and Tools

The following libraries were used to build this project:

  1. gcc - the GNU C compiler;
  2. CMake - a better approach to describe the building than the old school makefiles;
  3. CMocka - a library to write unit test code with mock object to isolate the tests.