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

I found compiler output to be a good resource.

$ gcc foo.c -S



A little bit more convenient, at least for me:

https://godbolt.org/


Maybe people think you're kidding with this response?

By far the best way to learn IMO, write C and see how it translates.


In order to get original source interspersed in the assembly, run

  gcc -c -g foo.c
  objdump -S foo.o




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

Search: