How can I see the assembly code that is generated by a gcc (any flavor) compiler for a C/C++ program?

Viewed 29410

I am trying to optimize a lot of multiplications and pointer arithmetics and would like to see what the compiler does underneath when I put in optimization flags.

--Edit--

How to restrict it to a specific function or a code block?

--Edit_2--

How to let gcc generate a less verbose assembly-code?

4 Answers
Related