optimization - How do I find how C++ compiler implements something except inspecting emitted machine code? -


suppose crafted set of classes abstract , worry whether c++ compiler able to peel off wrappings , emit clean, concise , fast code. how find out compiler decided do?

the way know to inspect disassembly. works simple code, there're 2 drawbacks - the compiler might different when compiles same code again , machine code analysis not trivial, takes effort.

how else can find how compiler decided implement coded in c++?

i'm afraid you're out of luck on one. you're trying find out "what compiler did". compiler did produce machine code. disassembly more readable form of machine code, can't add information isn't there. can't figure out how meat grinder works looking @ hamburger.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -