flofriday / UEB-Testsuite

A testsuite for the Übersetzterbau (compilers) lecture at TU Wien 2022S.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UEB-Testsuite

A testsuite for the Übersetzterbau (Compilers) at TU Wien 2022S.

Usage

  1. git clone https://github.com/flofriday/UEB-Testsuite.git ~/test
  2. 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.

Other Tipps

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.

Contributing

Contributions are very welcome, feel free to just create a PR. You are awesome 😊🎉

About

A testsuite for the Übersetzterbau (compilers) lecture at TU Wien 2022S.

License:MIT License


Languages

Language:Roff 71.7%Language:C 28.3%