4 ms·
I recommend using Godbolt (https://godbolt.org/ https://godbolt.org/) to view the assembly output of your compiled language (C++, etc)
by orangepurple 4y ago
I recommend using Godbolt (https://godbolt.org/ https://godbolt.org/) to view the assembly output of your compiled language (C++, etc)
- zen_1 4y agogdb's disas command (or asm view in general) is also very helpful, especially if you want to try control-c profiling [1] and then looking at the asm instructions in the neighborhood of where you halted your program. [1]: https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux https://stackoverflow.com/questions/375913/how-can-i-profile...
- ChrisMarshallNY 4y agoGodbolt is awesome. We used to use it all the time. The story I heard, is that the author threw it together to reinforce his side of an argument about code efficiency.
- account42 4y ago> Godbolt is awesome. We used to use it all the time. I wonder how Matt Godbolt feels about being used or about being called "it". Joking of course - it was an odd choice to use $surname.org for one specific tool he built.
- gpderetta 4y agoThe tool is called Compiler Explorer; I think Matt just hosted it in his own otherwise unused existing personal domain, but the name famously stuck as it is short and memorable (at $WORK, our private compiler explorer installation is under go/godbolt!).