Skip to content

Doommius/Bachelor-project-Compiler-Construction

Repository files navigation

Compiler

Made by

Troels Blicher Petersen (trpet15)
Mark Jervelund          (mjerv15)
Morten Kristian Jæger   (mojae15)

How to run

Compile entire project

To make the entire project:

make

Compile specific parts

To compile main program:

make compiler

To compile tests

make tests

Run the program(s)

For compiler:

./compiler

Ideal run:

./compiler <filename>

Compile program and create executable:

./compiler -a <filename>

For tests:

./tests

How to clean-up project

Clean only build files

make clean

Clean build files and compiled programs

make clean-all

Git

How to create branch of old commit

git branch <branchname> <hash value of commit>

How to switch to branch

git checkout <branchname>

How to delete branch

git branch -d <branchname>

How to list branches

git branch

Show previous commits in terminal

git log --stat

Go back n commits

git checkout HEAD-n

Git Bisectb

git bisect start

# Current head / commit
git bisect bad

# Last known good coomit
git bisect good <commit hash>

---->
# Tell bisect if the commit is good or bad.
git bisect good/bad

# If any changes is made during testing
git reset --hard HEAD
# - to be able to move on to another commit

---->
# Create branch from bad commit or reset.
git bisect reset / git branch <branchname>