A testsuite for the Übersetzterbau (Compilers) at TU Wien 2022S.
git clone https://github.com/flofriday/UEB-Testsuite.git ~/test
- Run the tests as described in the individual test-suite folders for the tasks
Every exercise has its own folder with a README.md for instructions on how to use its tests.
Compiler Explorer (godbolt) is an amazing Website with which you can discover how different compilers translate code to machine instructions. You will need to add the -masm=att
flag to enable AT&T syntax and I would also suggest using the -Os
flag which optimizes for the least number of instructions. However sometimes its handy to turnoff optimizations with -O0
.
When compiling code generated with flex and -Wall
you will get warnings that input
and yyunput
is unused. By adding the following lines to the top of the file you can fix those warnings.
%option noinput
%option nounput
There are two great videos on YouTube for an overview of flex and bison.
On VoWi Übersetzterbau are some solutions from past semesters which can be very helpfull in understanding, and learning from practial examples.
Contributions are very welcome, feel free to just create a PR. You are awesome 😊🎉