Skip to content

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

License

Notifications You must be signed in to change notification settings

victorvianna/mini-gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <input mini-C file>

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published