C compiler for a small subset of the C language. It recognizes "if"/"else" and "while" expressions, assignments and declarations and input/output operations.
GCC - C compiler
Execute MakeFile.
make
To test just execute "stack" file and give an example as input.
./stack < exemplo1.txt
When given a C program as input, the program starts by syntax analyzing it, reporting erros if there is any syntax mistake.
If the syntax is all correct the program will build an intermediate code, in P-CODE, and print it to the bash.
After this is built, it will analyze it and build an executable MIPS file.
Nome | Numero UP |
---|---|
Diogo Pereira | 201605323 |
Frederico Emanuel | 201604674 |