Skip to content

Commit

Permalink
night commit. WIP: vect access
Browse files Browse the repository at this point in the history
  • Loading branch information
lapotolo committed Feb 24, 2020
1 parent e6cc376 commit 655f253
Show file tree
Hide file tree
Showing 25 changed files with 1,033 additions and 3,958 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LCI18
# Languages, Compilers, Interpreters 2019-2020
A little compiler for a little language.

Project for the course "Languages, Interpreters, Compilers" @Univerita' di Pisa, academic year 2018/2019.

For more information about this project take a look [here](https://github.com/ranma42/languages-compilers-interpreters-2018).
For more information about this project take a look [here](https://github.com/ranma42/languages-compilers-interpreters-2019).
18 changes: 18 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CFLAGS+=`llvm-config-9 --cflags`
LLVM_LINK_FLAGS=`llvm-config-9 --libs --cflags --ldflags core analysis executionengine mcjit interpreter native --system-libs`

LEX?=flex
YACC?=bison
YFLAGS+=-d

all: jit_eval

scanner.o: parser.c

ast.o: parser.c

jit_eval: scanner.o parser.o ast.o utils.o
$(CXX) -o $@ $^ $(LLVM_LINK_FLAGS) -rdynamic

clean:
rm -f jit_eval ast.o scanner.o parser.o utils.o parser.c y.tab.h
Loading

0 comments on commit 655f253

Please sign in to comment.