gcc - How to know what code has been optimized out? -


is there way information during or after compilation parts of code have been optimized out, without looking @ assembly or executing code.

it'd nice know if big code chunk gets optimized away.

gcc -s 

will output assembly code have been passed assembler (and been linked executable). if squint right way (and patient), can work backwards confirm whether given bit of code has been included in executable, or optimized away.

obviously not you'd unless have suspicion going on, given time , effort required...


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -