Lab05 - aarch64

Objective: In this lab, I worked with 64-bit assembly language on Aarch64 platform to learn about CPU architecture and assembly instructions. Getting Started with Code Example The first step is to retrieve the code example from the server. The file is compressed, so we'll extract it into the desired location (in my case, the home directory): cd ~ tar xvf /public/spo600-assembler-lab-examples.tgz Once extracted, you’ll see a folder named spo600 , which contains all the necessary files. . AArch64: Investigating the C Code To explore the C version of the program, navigate to the folder containing the hello.c file and compile it using make : make AArch64: Disassemble the binary to view the assembly code: objdump -d hello AArch64: This will show us the assembly instructions, where we can observe that different CPU architectures (x86_64 vs Aarch64) generate different instructions, even for the same program. Exploring the Aarch64 Platform Now, let’s dive into the A...