Thread overview
[Issue 17385] Too much commands
May 08, 2017
ag0aep6g@gmail.com
Oct 02, 2017
Jon Degenhardt
Feb 20, 2020
Basile-z
Feb 20, 2020
Simen Kjaeraas
Feb 20, 2020
Basile-z
Mar 21, 2020
Basile-z
Nov 09, 2020
Mathias LANG
May 08, 2017
https://issues.dlang.org/show_bug.cgi?id=17385

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g@gmail.com

--- Comment #1 from ag0aep6g@gmail.com ---
(In reply to Serafimati from comment #0)
> https://goo.gl/WPlPB8
[...]
> We can save 17 bytes. It's 68% of all the procedure binary... What's wrong?

You forgot `-O`.

--
October 02, 2017
https://issues.dlang.org/show_bug.cgi?id=17385

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/30c280156c6d7f0550f42a3a4d64db5c0cced4e3 Issue 17385: Update findSplit doc so example compiles.

https://github.com/dlang/phobos/commit/28b8c9d46c5e824fd187bcf51354b70607ba2f59 Merge pull request #5752 from jondegenhardt/issue-17385-findSplit-doc

Issue 17385: Update findSplit doc so example compiles. merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>

--
October 02, 2017
https://issues.dlang.org/show_bug.cgi?id=17385

Jon Degenhardt <jrdemail2000-dlang@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrdemail2000-dlang@yahoo.co
                   |                            |m

--- Comment #3 from Jon Degenhardt <jrdemail2000-dlang@yahoo.com> ---
(In reply to github-bugzilla from comment #2)
> Commits pushed to master at https://github.com/dlang/phobos
> 
> https://github.com/dlang/phobos/commit/
> 30c280156c6d7f0550f42a3a4d64db5c0cced4e3
> Issue 17385: Update findSplit doc so example compiles.
> 
> https://github.com/dlang/phobos/commit/
> 28b8c9d46c5e824fd187bcf51354b70607ba2f59
> Merge pull request #5752 from jondegenhardt/issue-17385-findSplit-doc
> 
> Issue 17385: Update findSplit doc so example compiles. merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>

Ignore this comment. The result of an incorrect issue number in a PR title.

--
October 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17385

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/30c280156c6d7f0550f42a3a4d64db5c0cced4e3 Issue 17385: Update findSplit doc so example compiles.

https://github.com/dlang/phobos/commit/28b8c9d46c5e824fd187bcf51354b70607ba2f59 Merge pull request #5752 from jondegenhardt/issue-17385-findSplit-doc

--
February 20, 2020
https://issues.dlang.org/show_bug.cgi?id=17385

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |INVALID

--- Comment #5 from Basile-z <b2.temp@gmx.com> ---
original code is N/A

--
February 20, 2020
https://issues.dlang.org/show_bug.cgi?id=17385

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |simen.kjaras@gmail.com
         Resolution|INVALID                     |---

--- Comment #6 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
This is the code (which is available in the URL that the shortlink resolves
to):

int square(ref int num) {
   num = 11;
   return 0;
}

Putting that in run.dlang.io, setting flags to '-O' and clicking the ASM button gives this:


int onlineapp.square(ref int):
                push    RBP
                mov     RBP,RSP
                mov     dword ptr [RDI],0Bh
                xor     EAX,EAX
                pop     RBP
                ret
                add     [RAX],AL

--
February 20, 2020
https://issues.dlang.org/show_bug.cgi?id=17385

--- Comment #7 from Basile-z <b2.temp@gmx.com> ---
sorry I got a 503 and thought it was gone forever.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=17385

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
November 09, 2020
https://issues.dlang.org/show_bug.cgi?id=17385

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #8 from Mathias LANG <pro.mathias.lang@gmail.com> ---
I'm going to close this as not actionable. Asking for a specific set of instructions to be output is not quite a bug report.

As mentioned, one can use `-O`, and/or `-inline`, or one of the other compilers (GDC, LDC), if the output code is not satisfactory. If this is part of a bigger issue, please re-open with the details.

--