SPO600 Lab5 64-Bit Assembly Language Lab Pt.2 ---x86_64 part
In the part 2 of this Lab , I am going to experiment with assembler on the x86_64 platforms, similar to the Lab part 1. Task 1 Observe the difference between source code and the object file of the x86 assembly language Source code (gas / AT&T ): Source code (nasm / Intel): object file (gas): Task 2 -- modify a loop code in the x86 system to print loop for 6 times. Before that, I want to modifty the Makefile so that it can make file for the loop-gas.s Revised Makefile: code: BINARIES=hello-nasm hello-gas loop-gas all: ${BINARIES} AS_ARGS=-g hello-nasm: hello-nasm.s nasm -g -o hello-nasm.o -f elf64 hello-nasm.s ld -o hello-nasm hello-nasm.o hello-gas: hello-gas.s as ${AS_ARGS} -o hello-gas.o hello-gas.s ld -o hello-gas hello-gas.o loop-gas: loop-gas.s as ${AS_ARGS} -...