An open API service indexing awesome lists of open source software.

https://github.com/victorvianna/mini-gcc

(Old college project) Compiler of a subset of the C language
https://github.com/victorvianna/mini-gcc

c-language compilation

Last synced: about 1 year ago
JSON representation

(Old college project) Compiler of a subset of the C language

Awesome Lists containing this project

README

          

# mini-gcc

Compiler of mini-c language, a subset of C language.

## Authors

Cauim de Souza Lima
Victor Hugo Vianna

## Requirements

ocamlbuild

## Instructions

To compile:
```
make
```
To run:
```
./mini-c
```
An output assembly file will be generated with the same name and in the same directory as the input.
To run the tests:
```
cd tests
./run -all ../mini-c
```

## Language

- All declarations must be done in the beggining of each function (first declare, then assign).
- Variables can be either ints or pointers to structs.
- More information can be found [here](https://www.enseignement.polytechnique.fr/informatique/INF564/projet/sujet-v1.pdf).