For GCC, you are able to look up what options are enabled for different optimization levels. There is even a webpage for that: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html . I can't find anything similar for for armclang (or clang in general).
I found these two pages, but they don't answer my question: https://llvm.org/docs/Passes.html#introduction , https://developer.arm.com/documentation/100067/0611/armclang-Command-line-Options
Thanks for any help!
Hello
Arm does not document the optimizations to that level, as they may differ slightly between releases. General comparison between optimization levels is explained here:
https://developer.arm.com/documentation/101754/0616/armclang-Reference/armclang-Command-line-Options/-O--armclang-
Thanks for the answer! However, I need to pass the individual optimization options to the compiler. If there is no documentation for the different levels, is there at least a list of all possible optimization options one can pass to armclang (or clang in general)?