Skip to content

Commit

Permalink
first upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Nasisolo authored Feb 6, 2021
1 parent 8a8d9e0 commit d786af5
Show file tree
Hide file tree
Showing 13 changed files with 1,054 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#http://makefiletutorial.com/
objects = vm.o fx.o main_vm.o
eseguibile = VM
cflags = -g3 -fsanitize=address -fsanitize=undefined -std=gnu89 -pedantic-errors -Wall -Wextra
libs = -lm

$(eseguibile) : $(objects)
gcc $(cflags) -o $(eseguibile) $(objects) $(libs)

clean:
rm $(eseguibile) $(objects)

#regole implicite
.c.o :
gcc -c $(cflags) $<
.h.c :
touch $<

5 changes: 5 additions & 0 deletions compila.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#Utilizzo:
# ./compila.sh -o ESEGUIBILE FILE1.c FILE2.c FILE3.c ....

gcc -g3 -fsanitize=address -fsanitize=undefined -std=gnu89 -pedantic-errors -Wall -Wextra -o VM fx.c vm.c main_vm.c
Binary file added doc/VMdoc.pdf
Binary file not shown.
Loading

0 comments on commit d786af5

Please sign in to comment.