Skip to content

Instantly share code, notes, and snippets.

@uchan-nos
Created September 3, 2021 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uchan-nos/e9c51564ac9d65b007084ecbc139e1ef to your computer and use it in GitHub Desktop.
Save uchan-nos/e9c51564ac9d65b007084ecbc139e1ef to your computer and use it in GitHub Desktop.
strange behavior of 'as command' on M1 Mac
mov x0, #1
LABEL1: # f
mov x0, #2
LABEL2: # '
mov x0, #3
LABEL3: # 'f
mov x0, #4
LABEL4: # 'fo
mov x0, #5
LABEL5: # 'foo
mov x0, #6
mov x0, #7
/*
$ objdump -d comment_single-quote.o
comment_single-quote.o: file format mach-o arm64
Disassembly of section __TEXT,__text:
0000000000000000 <ltmp0>:
0: 20 00 80 d2 mov x0, #1
4: 40 00 80 d2 mov x0, #2
8: a0 00 80 d2 mov x0, #5
c: c0 00 80 d2 mov x0, #6
10: e0 00 80 d2 mov x0, #7
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment