www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17385] New: Too much commands

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 puremagic.com
          Reporter: Serafimati 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?

--
May 08 2017