dmd Arm64 - first function compile!

Walter Bright newshound2 at digitalmars.com
Mon Jun 3 18:38:47 UTC 2024


On 6/3/2024 9:41 AM, Ben Jones wrote:
> On Sunday, 2 June 2024 at 06:30:18 UTC, Walter Bright wrote:
>>
> 
> What stuff can other contributors be helping with on this?
> 

1. add floating point instructions, SIMD, SVE and SME instructions to the 
disasmarm.d. It only currently does the Base Instructions.

http://www.scs.stanford.edu/~zyedidia/arm64/index.html


2. using the Gnu assembler, `as`, write an example of every instruction. Collect 
the binary hex emitted, and add them as unit tests to the disassembler.


3. write an inline assembler. Much like the arm disassembler, this will be 
totally different from the way the x86 assembler works. I suggest making it work 
analogously to the way disasmarm.d works. The list of instructions written for 
(2) can be reused as the test suite for it.


With the disassembler verified against `as`, and the inline assembler verified 
against the disassembler, then the instructions generated by the compiler can be 
much more easily verified.


More information about the Digitalmars-d mailing list