Posts

Showing posts with the label Lab2

Whiteboard App V1.0

Click here to see my application. Vision 1.0 Two basic function  "WIPE", means clean content.  "SAVE", the content will be save at browser until new note be added. When you refresh the web page, the saved note will be show up. This function is based on https://github.com/filerjs/filer . Functions will be added in the future "PRINT", when click it will download current note with date to local computer Some git command I have learned from this lab git clone https://github.com/username/repo-name.git  git add filename git commit -m "common" git push origin master

Compiled C Lab

Server used in this lab is Aarch64 $ ssh siwen@aarchie.cdot.systems Step 1 Write a basic C program which prints a message on the screen #include <stdio.h> int main() {       printf ("Hello World!\n"); } Step 2 Compile the program using the GCC compiler $ gcc hello.c -o hello0 -g -O0 -fno-builtin && ll -h -g # enable debugging information -O0 # do not optimize (that's a capital letter and then the digit zero) -fno-builtin # do not use builtin function optimization ll -h # displays detail info of all files/directories  with names starting with letter h Step 3 Using objdump $ objdump hello0 -f -s -d | less -f # display header information for the entire file -s # display per-section summary information -d # disassemble sections containing code less # enable pageup and pagedown Find the answers to these questions: (i) Which section contains the code you w...