While using modern C++ compilers (including MSVC, GCC, ICC), how can I say if it has:
without diving into the assembler code the compiler produces?
The only way you can really tell is if you examine the assembler output (which you appear to have discounted). Other than that, you could read the doco to see what types of optimization each level of your compiler provides.
But, in all honesty, if you don't trust that the optimization levels of your compiler are doing the job, you probably won't trust the doco :-)
I would look at the assembler myself, it's the only way you could be truly certain.
Intel compiler has decent reporting facility. Look up -vec-report and -par-report in reference documentation or in the man page.
g++also has vector reports, look in the man page for "vector", I'd don't think g++ has parallel automatic code generation.
As far as last three things, I'd don't think compilers report that, so you probably have to go to assembly to get that information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With