Re: Anybody may help to explain the issue of the source code , next "try-throw-catch" will cost more cpu time than previous one

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

 



Andrew , 

Thanks a lot for your explaining !

Miles 

--- 09年1月2日,周五, Andrew Haley <aph@xxxxxxxxxx> 写道:

> 发件人: Andrew Haley <aph@xxxxxxxxxx>
> 主题: Re: Anybody may help to explain the issue of the source code , next "try-throw-catch" will cost more cpu time than previous one
> 收件人: "f z" <zhangjiakouzf@xxxxxxxxxxxx>
> 抄送: gcc-help@xxxxxxxxxxx
> 日期: 2009,12,周五,5:48下午
> f z wrote:
> > Andrew,
> > 
> > I compile the release version of the test code with VC
> 6.0 and run it on windows xp sp2 , 
> > but it took the same time in every try_throw_catch
> block ,so perhaps we can do something to improve the
> preformance 
> 
> VC uses a very different technique.
> 
> DWARF exception handling, as used in GNU/Linux systems, has
> essentially zero overhead as long as an exception isn't
> thrown.
> However, this does mean that in the rare case when an
> exception
> is thrown, there is some searching to do.  On balance this
> is a
> good compromise, as long as throwing an exception really is
> rare.
> 
> Andrew.


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux