Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recommend using Godbolt (https://godbolt.org/) to view the assembly output of your compiled language (C++, etc)


gdb'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...


Godbolt 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.


> 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.


The 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!).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: