diff options
Diffstat (limited to 'md/writeup/arm64_assembly_hello_world.md')
-rw-r--r-- | md/writeup/arm64_assembly_hello_world.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/md/writeup/arm64_assembly_hello_world.md b/md/writeup/arm64_assembly_hello_world.md index 118e7b6..c4685f1 100644 --- a/md/writeup/arm64_assembly_hello_world.md +++ b/md/writeup/arm64_assembly_hello_world.md @@ -25,12 +25,12 @@ int main() { Running 64bit linux. To detect with architecture and what bitness of os run command -``` +```bash uname ``` Architecture shown as aarch64 enoughs to indicate that os ir 64bit -``` +```bash Linux raspberrypi 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux ``` @@ -65,9 +65,9 @@ _start: Too compile check if you have installed gnu gcc, other compilers such as clang also should work perfectly fine. -```makefile - as hello.s -o hello.o - gcc hello.o -o hello +```bash +as hello.s -o hello.o +gcc hello.o -o hello ``` ## Apple M1 @@ -97,7 +97,7 @@ helloworld_len = . - helloworld Install xcode tools before compilation -```makefile +```bash as -o hello.o hello.s ld -macosx_version_min 11.0.0 -o hello hello.o -lSystem -syslibroot `xcrun -sdk macosx --show-sdk-path` -e _start -arch arm64 ``` |