I’m a newbie in clang. I have read a paper about source to source transformation from cuda to opencl using clang compiler front end.
Can anyone tell me why the option -cc1 is sometimes used?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Clang compiler front-end has several additional Clang specific features which are not exposed through the GCC compatibility driver interface. The
-cc1argument indicates that the compiler front-end is to be used, and not the driver. The clang-cc1functionality implements the core compiler functionality.So, simply speaking. If you do not give
-cc1then you can expect the “look&feel” of standard GCC. That is the vast majority of compiler flags work just like you would expect them to work with GCC. If you pass the option “-cc1” then you get the Clang compiler flag set. Thus, there might be differences to GCC.Hope that makes it a little clearer.