免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4341 | 回复: 9
打印 上一主题 下一主题

Codesourcery想用C++重写gcc,绑架? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-02 12:55 |只看该作者 |倒序浏览
本帖最后由 prolj 于 2010-06-02 13:11 编辑

对有些人来说是悲剧。

论坛徽章:
0
2 [报告]
发表于 2010-06-02 12:57 |只看该作者
http://gcc.gnu.org/ml/gcc/2010-05/msg00705.html

Using C++ in GCC is OK

From: Mark Mitchell <mark at codesourcery dot com>
To: GCC <gcc at gcc dot gnu dot org>
Date: Sun, 30 May 2010 17:26:16 -0700
Subject: Using C++ in GCC is OK
I am pleased to report that the GCC Steering Committee and the FSF have
approved the use of C++ in GCC itself.  Of course, there's no reason for
us to use C++ features just because we can.  The goal is a better
compiler for users, not a C++ code base for its own sake.

Before we start to actually use C++, we need to determine a set of
coding standards that will apply to use of C++ within GCC.  At first, I
believe that we should keep the set of C++ features permitted small, in
part so that GCC developers not familiar with C++ are not rapidly
overwhelmed by a major change in the implementation language for the
compiler itself.  We can always use more of C++ later if it seems
appropriate to do so, then.

For example, I think it goes without question that at this point we are
limiting ourselves to C++98 (plus "long long" so that we have a 64-bit
integer type); C++0x features should not be used.  Using multiple
inheritance, templates (other than when using the C++ standard library,
e.g. std::list<X>), or exceptions also seems overly aggressive to me.
We should use features that are relatively easy for C programmers to
understand and relatively hard for new C++ programmers to misuse.  (For
example, I think constructors and destructors are pretty easy and hard
to misuse.)

Because C++ is a big language, I think we should try to enumerate what
is OK, rather than what is not OK.  But, at the same time, I don't think
we should try to get overly legalistic about exactly what is in and what
is out.  We need information guidelines, not an ISO standard.

Is there anyone who would like to volunteer to develop the C++ coding
standards?  I think that this could be done as a Wiki page.  (If nobody
volunteers, I will volunteer myself.)  Whoever ends up doing this, I
would urge the rest of us not to spend too much time in the C++
coding-standards bikeshed; we're not going to win or lose too much
because we do or do not permit default parameters.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
3 [报告]
发表于 2010-06-02 13:07 |只看该作者
贵在折腾

论坛徽章:
0
4 [报告]
发表于 2010-06-02 14:30 |只看该作者
回复 1# prolj


    这个信不是mark代表CodeSourcery发的,而是代表SC发的。这个决定体现了GCC开发者社区的想法。所以没有绑架一说。

论坛徽章:
0
5 [报告]
发表于 2010-06-02 15:15 |只看该作者
我们在IRC上随便聊聊,还想找你确认来着。

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
6 [报告]
发表于 2010-06-02 16:52 |只看该作者
聊远了,呵呵

论坛徽章:
0
7 [报告]
发表于 2010-06-04 01:58 |只看该作者
有趣

论坛徽章:
0
8 [报告]
发表于 2010-06-04 09:51 |只看该作者
用Coo重写最合适,编译器仍然是C,方法是OO
http://sourceforge.net/projects/coo/

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
9 [报告]
发表于 2010-06-04 13:10 |只看该作者
呵呵,你可以去mailing list上建议一下

论坛徽章:
0
10 [报告]
发表于 2010-06-04 16:00 |只看该作者
你去ml上说吧,我就看看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP