Skip to content

eduucaldas/comp-mini-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-C Compiler

Compiler for a simplified version version of C (called Mini-C), developed in OCaml.

It was developed as a project for a Compilers course (INF564) at École Polytechnique.

Compile

To generate the compiler, do:

$ make

This will generate a mini-c file

Run

To compile and run a .c file with the Mini-C Compiler, do:

$ ./mini-c test.c

This will generate a .s file with the assembly code. Then, to generate and run the executable file, do:

$ gcc test.s -o test -no-pie
$ ./test

Tests

To run the tests, do:

$ cd tests
$ ./run -3 ../mini-c

Developed by:

Eduardo Caldas

Gabriel Oliveira

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published