Created
September 3, 2021 09:33
-
-
Save uchan-nos/e9c51564ac9d65b007084ecbc139e1ef to your computer and use it in GitHub Desktop.
strange behavior of 'as command' on M1 Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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