Using GCC 4.2 to compile *.mm files is very very slow, but LLVM has done a very good job, any difference?

Posted by jianhua on Stack Overflow See other posts from Stack Overflow or by jianhua
Published on 2011-11-22T01:20:17Z Indexed on 2011/11/22 1:51 UTC
Read the original article Hit count: 131

Filed under:
|
|

My project is obj-c and C++ hybirid, filled with by both *.m and *.mm.

When compiling, if choose GCC 4.2, *.m obj-c source files compile speed is very fast but *.mm very very slow, but LLVM 2.0 can do a very good job, it is very fast for both *.m and *.mm.

My question: Is there any difference between LLVM and GCC 4.2 during compliling *.mm files? why GCC 3.2 is so slow?

Any ieda or discussion will be appreciated, thanks in advance.

ENV: XCODE 4.0.1

© Stack Overflow or respective owner

Related posts about gcc

Related posts about compilation