dmd "hello world" now compiles and runs with AArch64 code gen
Walter Bright
newshound2 at digitalmars.com
Thu Jul 18 06:08:53 UTC 2024
#dlang dmd compiler now compiles "hello world" to a working program for #AArch64
on my #raspberrypi
The generated code looks like this:
```
main:
0000: A9 BF 7B FD stp x29,x30,[sp,#-16]!
0004: 91 00 03 FD mov x29,sp
0008: 90 00 00 00 adrp x0,#0
000c: 91 00 00 00 add x0,x0,#0
0010: 94 00 00 00 bl #0
0014: A8 C1 7B FD ldp x29,x30,[sp],#16
0018: D6 5F 03 C0 ret
```
(Fixups not shown.) The way fixups are done is quite different from the #x86_64
so I jury-rigged it for the moment. Once more of that is fleshed out, I can put
a nicer structure on it.
More information about the Digitalmars-d
mailing list