Relative Content

Tag Archive for assemblyarm64

Reading argc value in ARM64 assembly

I’m trying to read argc value in my aarch64 assembly program. I know that it should be stored in x0 register, with argv being in x1. When I tried to debug this with GDB I found out that depending on how I compile my code x0 folds different values at start, but never argc value.
My code: