Posts

SPO600 Project 1 Stage 3

Image
This is the advantages of using the Redis. Redis data types and there process. This what I got when compiling the benchmark file. The results on x86 and aarchie were almost identical. Aarchie                                                                                 x86                                         

Lab6

Inline assembler is another type of assembler. It uses assembly language and compiler translates the source code into machine language. In short story, it's using assembler commands directly in high-level language.

Lab5

There are different algorithms which going have the same results. One of three algorithms is selected for adjusting the volume of PCM audio. There is various tools that are going to be tested to profile these programs. There are four profilers in this lab and these are: gprof, perf, oprofile, and systemtap.

Lab4

x86_64 intro and assembly language program With syscall and without printf function creates more work for cpu The syscall invokes one or more registers than write command There is 2 assembly codes format: NASM and GAS GAS it's a GNU assembler syntax it works from left to right NASM it works from right to left it's a lot similar to Aarch64 In order to have numbers without 0's in first digit column in first ten numbers is "cmp", "jne" commands and a label. AARCH64 intro and assembly language program It's similar to x86_64 It uses NASM which reads the code from right to left Cannot write to memory from address

Lab3

Objdump $flag and $program with the –f –s –d and –source gives valuable information associated with binary file. Also, it shows what sections of memory are linked with. Having static with gcc command creates a binary file (whopping %700 larger) and also it’s not great for making smaller applications.

SPO600 Project 1 Stage 2

Image
Redis notable points: ·          In-memory-based key-value store ·          Faster than memory-based database (performance wise) ·          it processes the data into memory ·          repository provides primitive types ·          data types like String, Set, Hash, List, Basic Functions (Search Add Delete of data) ·          Hiredis - APIs that manipulates Redis as C client Benchmark source code const int N = 1000000; int main() {     printf("Connecting...\n");     redisContext *redis = redisConnect("localhost", 6379);     clock_t start, end;     float ftime;     if (redis->err) {         puts(redis->errstr);         char *p = redis->errstr;         while (*p) {             printf("%x ", (int)(*p++));         }         printf("\n");     }     else {         start = clock();         char *cmd;         int len;         for (int i = 0; i < N; i++) {             len =