[Issue 17385] New: Too much commands

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 8 14:28:52 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17385

          Issue ID: 17385
           Summary: Too much commands
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: Serafimati at yandex.ru

https://goo.gl/WPlPB8

Why not:

int example.square(ref int)
 mov    DWORD PTR [rdi],0xb
 xor    eax,eax 
 ret

???

We can save 17 bytes. It's 68% of all the procedure binary... What's wrong?

--


More information about the Digitalmars-d-bugs mailing list