[llvm-dev] difference between --target, -mcpu, -march

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 16 14:53:45 PDT 2016


I'm confused about the clang --target, -mcpu, -march

Can someone give a clear explanation on what is the difference between them?

Originally I thought need to specify -mcpu (which I assume means CPU) and
-march but then I can't figure out how --target fits into the picture.
Sometimes it tells me that -march or -mcpu options is not used. I would
really appreciate any help on this.

-- 
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160316/ddddf181/attachment.html>


More information about the llvm-dev mailing list