summaryrefslogtreecommitdiff
path: root/md/writeup/arm64_assembly_hello_world.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
committerFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
commit380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch)
tree9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/arm64_assembly_hello_world.md
parentdf881efab146ca3ee61bf8936f948dd976fc4740 (diff)
downloadmd-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.tar.gz
md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.zip
Update all content to new pygmentize
Diffstat (limited to 'md/writeup/arm64_assembly_hello_world.md')
-rw-r--r--md/writeup/arm64_assembly_hello_world.md12
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
```