[hellogcc] Re: [hellogcc] Re: clang相关讨论

  • From: Mingjie Xing <mingjie.xing@xxxxxxxxx>
  • To: asmwarrior <asmwarrior@xxxxxxxxx>
  • Date: Thu, 20 Jan 2011 10:24:15 +0800

2011/1/20 asmwarrior <asmwarrior@xxxxxxxxx>:
> On 2011-1-20 10:04, Mingjie Xing wrote:
>>
>> 看了下http://gcc.gnu.org/ml/gcc/2010-04/msg00433.html上的后续讨论,竟然是一番舌战。;
>>
>> "This approach seems highly, uh, "inspired" from the exact same
>> functionality in Clang.  Any reason not to contribute to that effort?"
>> ---- Chris
>>
>> "Surely trying to persuade people to contribute to some other project
>> rather than gcc is off-topic here.  Even if not, it's pretty hostile."
>> ---- Andrew.
>
> 我其实没有看懂chris讲的。
>
> 另外,其实clang里面处理codecompletion的那个特殊的Token的时候,也是和 gccsense一样的做法。可能gcc的
> parser的接口不太好,所以gccsense的那些 patch里面的做法好像被gcc的开发者鄙视了。但是实际上,我觉得通过给gcc加
> plugin的方法来实现codecompletion的功能是不行的。
>
> 我个人感觉gcc的分析器前端看起来很是头疼,相比之下,clang的分析器前端要好 很多,模块化的代码,看起来舒服很多。
> 不知道有没有能力分离出一个gcc的front end的前端来,这样clang里面的很多事 情gcc也能够做了。
>
> 不过说实话,gcc如果要提供向clang那样的这么多接口,例如除了 codecompletion,还有index,还有rewrite等,我 觉得太难了。
>
> 所以现在我觉得以后IDE和libclang捆绑是一个趋势。
>
> asm
>

其实,我也是觉得clang要好些,呵呵。

Other related posts:

  • » [hellogcc] Re: [hellogcc] Re: clang相关讨论 - Mingjie Xing