Lensm: Go Assembly and Source Viewer
github.com
github.com
go build && go install
But the major reason I had difficulty understanding is I don't know Assembly except some basic operations. Are there any resources to learn Assembly, at least to a level that I understand output like this: https://go.godbolt.org/z/P4jW1bG6z ?
0: https://go.godbolt.org/
1: https://abhijithota.me/go-range/I used a lot of their HTML and CSS when building https://trycinder.com/
How/What is this used for?
I've used a similar tool for Shaders and it was very useful for understanding where the GPU spends time. However, do we need that level of details for CPU based applications.
Shaders are very bad at certain things like conditional statements. So we usually do that level of analysis to avoid. And the application is for Games or graphics heavy applications. In the same manner, what kind of application goes through this level of details?
Being able to inspect the generated assembly usually reveals the cause, and this tool improves being able to jump to the right place, as there tends to be a lot of assembly generated even for small snippets of code, so finding the right place can take some time.