Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22091

Difference between GCC and Clang optimization options [closed]

$
0
0

Precondition: I invoke gcc with -O2 optimization flag and clang with -O2 optimization flag.
Does it means the options list passed to the compilers will be the same?
Do clang understand standard GCC options like -funroll-loops?

I did not find anything useful about this question in manual:
http://llvm.org/releases/3.3/tools/clang/docs/UsersManual.html
I can not even find a list of possible GCC compatible options that can be used with clang.

Do clang even do anything with GCC options (or it just ignore them?)
I just need some clarifications on how it work.


Viewing all articles
Browse latest Browse all 22091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>