July 17 dmd "hello world" now compiles and runs with AArch64 code gen | ||||
---|---|---|---|---|
| ||||
#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. |
Copyright © 1999-2021 by the D Language Foundation