Develop encoding / decoding functions in assembly, write C program to encode a file, use a decoding function to check the encoding functionality. Compare the time taken to encode/decode a large file in C and Assembly language.
This project running on Ubuntu 16.04.6 LTS (Xenial Xerus) 64bit
The command line may require adjusting for other models
Build object and list of data file from assembly file
nasm -g -f elf64 tv.asm -l tv.lstCreate object file result.o from assembly file tv.o and c.c file
gcc -g -m64 -o result.o c.c tv.oRun file and check result
./result.oQuick run
gcc -g -m64 -o encode.o encode.c tv.o && gcc -g -m64 -o decode.o decode.c tv.o && ./encode.o && ./decode.oQuick run cach2
rm -rf myfile_encode.txt && rm -rf myfile_decode.txt && nasm -g -f elf64 tv.asm -l ror.lst -o ror.o && gcc -g -m64 -o test ./cach2.c ror.o && ./test myfile.txt myfile_encode.txt myfile_decode.txt 1
