-
Notifications
You must be signed in to change notification settings - Fork 1
/
compNrun.sh
executable file
·43 lines (42 loc) · 2.32 KB
/
compNrun.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
echo 'Cleaning old binary files'
rm bin/*
echo 'Compiling Soft_Float';
gcc -o bin/soft_float.out src/soft_float.c
echo 'Creating assembly file for soft_float'
objdump -d bin/soft_float.out > src/soft_float.asm
echo 'Running Application with Input arguments babe.dat, output.dat'
bin/soft_float.out data/babe.dat data/output.dat
echo 'Compiling Soft_Int'
gcc -o bin/soft_int.out src/soft_int.c
gcc -o bin/soft_int_opt.out src/soft_int_optimized.c
echo 'Creating assembly file for soft_int'
objdump -d bin/soft_int.out > src/soft_int.asm
echo 'Running Application with Input arguments babe.dat, output_int.dat'
bin/soft_int.out data/babe.dat data/output_int.dat
bin/soft_int_opt.out data/babe.dat data/output_int_opt.dat
echo 'Compiling Application for ARM architecture'
arm-linux-gcc -o bin/soft_int_ARM.out -static src/soft_int.c
arm-linux-gcc -O3 -o bin/soft_int_ARM_gcc_opt.out -static src/soft_int.c
arm-linux-gcc -o bin/soft_int_ARM_optimized.out -static src/soft_int_optimized.c
arm-linux-gcc -o bin/soft_int_ARM_hardware.out -static src/soft_int_hardware.c
arm-linux-gcc -o bin/soft_int_car_ARM.out -static src/soft_int_car.c
echo 'Creating assembly file for ARM_INT'
arm-linux-objdump -d bin/soft_int_ARM.out > src/soft_int_arm.asm
echo 'Creating assembly file for ARM_INT_OPT'
arm-linux-objdump -d bin/soft_int_ARM_optimized.out > src/soft_int_arm_opt.asm
arm-linux-objdump -d bin/soft_int_ARM_gcc_opt.out > src/soft_int_arm_gcc_opt.asm
echo 'Creating assemblyfile for ARM_INT_HW'
arm-linux-objdump -d bin/soft_int_ARM_hardware.out > src/soft_int_arm_hw.asm
echo 'Running ARM Application with Input arguments babe.dat, output_int.dat'
qemu-arm bin/soft_int_ARM.out data/babe.dat data/output_int_ARM.dat
qemu-arm bin/soft_int_ARM_optimized.out data/babe.dat data/output_int_ARM_optimized.dat
qemu-arm bin/soft_int_ARM_hardware.out data/babe.dat data/output_int_ARM_hardware.dat
qemu-arm bin/soft_int_car_ARM.out data/car.dat data/output_int_ARM_car.dat
echo 'Compiling Application float for ARM architecture'
arm-linux-gcc -o bin/soft_float_ARM.out -static src/soft_float.c
echo 'Creating assembly file for ARM_FLOAT'
arm-linux-objdump -d bin/soft_float_ARM.out > src/soft_float_arm.asm
echo 'Running ARM Application with Input arguments babe.dat, output_int.dat'
qemu-arm bin/soft_float_ARM.out data/babe.dat data/output_float_ARM.dat
echo 'Finished'