-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_test.sh
More file actions
executable file
·26 lines (19 loc) · 839 Bytes
/
script_test.sh
File metadata and controls
executable file
·26 lines (19 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
nasm -f elf32 pqnn32.nasm
for file in $(ls ./assembly | grep .nasm); do
nasm -f elf32 ./assembly/$file
done
gcc -O0 -m32 -msse pqnn32.o assembly/*.o pqnn32c.c -o pqnn32c -lm
let i=1
v=_0
rm "./TestTempi/v$v.txt"
for (($i;i<=8;i*=2)); do
echo \n"--------------------KNN: $i-----------------------------"\n >> ./TestTempi/v1.txt
./pqnn32c prova -exaustive -adc -knn $i >> "./TestTempi/v$v.txt"
./pqnn32c prova -s -exaustive -sdc -knn $i >> "./TestTempi/v$v.txt"
./pqnn32c prova -s -noexaustive -adc -knn $i >> "./TestTempi/v$v.txt"
./pqnn32c prova -s -noexaustive -sdc -knn $i >> "./TestTempi/v$v.txt"
done
#inserita la compilazione del file testindex.c e datatypes.c, anzi tolta
#Inserito comando -lm per linkare la libreria math.h
#Gestita la compilazione di tutti i file assembly in una volta e
#Linkati al file di c