[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: GCC



gcc也可以指定用多媒体指令的,你看一下gcc 的manpage就知道了
据我知道不是指令集上的问题,而是intel用了一个vector library, 所以做数学运算的时候有些优势。
你可以写一个计算上万次sin的程序,分别用icc和gcc上用一下,试试看。

Regards,
Yan, Zheng

-----Original Message-----
From: ??? [mailto:info@socks5cn.com]
Sent: Wednesday, March 10, 2004 8:46 PM
To: Min Xu
Subject: Re: GCC


估计是用了一些SSEx指令吧 还有intel对自己cpu的流水线最清楚,作的比gcc好一点也不奇怪
----- Original Message ----- 
From: "Min Xu" <xu@cs.wisc.edu>
To: "Yan, Zheng" <Zheng.Yan@jp.sony.com>
Cc: <debian-chinese-gb@lists.debian.org>
Sent: Wednesday, March 10, 2004 12:27 PM
Subject: Re: GCC


> Yan, Zheng wrote:
> > GCC 是跨平台的compiler
> > icc 目前来说只支持x86
> > 
> > 况且,intel说的20%究竟怎么样测的,我们也不晓得
> > ps. kernel 目前不能用icc编译 (至少有些问题没解决,我在intel的朋友告诉我的)
> 
> Usually when measuring performance, people use benchmark suite, such as
> SPEC.
> The average performance is used to compare two products. I had some
> experience with icc.
> It made my C program 5% faster and had no noticable difference to my C++
> program.
> 
> That said, I think how good is icc/gcc really depends on _your_ program.
> Only the difference
> they make on _your_ program matters the most to you. You just need to
> try it out.
> 
> Personally, I like gcc since it is open source and widely used. (But I
> hate STL from GCC
> though ;-) )  icc may have better compiler optimization algorithms, but
> they usually works
> only for limited programs. Plus, the difference isn't really that much
> (considering you are
> usually limited by other things, like disks), if any.
> 
> -- 
> Shopping for food while listening to a Bach violin concerto completely
> remakes the experience. It turns you from a grazing animal into
> something finer.
>  - http://news.bbc.co.uk/2/hi/technology/3542391.stm
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: