Sunday, October 28, 2018

Lab 4

The goal of this lab was to  see first hand the differences between  aarch64 and x86_64 assembly code

in the example we had
Both started at the top with
.text
.global _

defining values were the same as well
with things like the following
start = 0
max = 0 

How ever function calls are different (mostly)

_Start:  << was a common factor

how ever
loop: << x86
_loop: <<aarch

one needed the _ where the other didn't

In the x86 we have more
 things like movq << the q specifically instead of mov(aarch)
it uses %num , %othernum
where as in aarch it use more simple with just and x before for registers
aarch has a cleaner looking code style with less special symbols needed for the values and items being passed or moved.

No comments:

Post a Comment