On Tuesday 19 February 2002 4:56 pm, Peng Zhao wrote:
> Thanks for your reply. But You can find something from
>  http://www.mysql.com/doc/I/B/IBM-AIX.html :

Thanks, I hadn't noticed that.

> "If you are using gcc or egcs to compile MySQL, you must use the
> -fno-exceptions flag, as the exception handling in gcc/egcs is not thread
> safe! (This is tested with egcs 1.1.)" And it also says the mysqld will
> crash radmonly without -fno-exceptions flag. I wonder recent gcc maybe can
> go on without the flags?

To be honest, I am not sure about the later versions of gcc.  It surprises me 
somewhat that exceptions aren't thread-safe in egcs.  Still, it would be 
worth trying out with gcc 2.95.x or gcc 3.x.

> I am using orcc to compile mysql. Can you tell me how gcc improve speed
> via avoiding exceptions? I mean if the source code contains throw-catch
> stuff, how gcc avoid that? And why throw-catch stuff is not performance

If the source code contains throw-catch, you are stuck.  You _must_ turn on 
exception handling in order to use them.

However, many people write code without any exceptions at all and in this 
case, the compiler can save some effort by not supporting them.

Note, though, that most modern implementations of iostream, etc. etc. 
probably use exceptions.

You may want to try out Intel's C++ compiler for Linux if you are using an 
ix86 CPU.  We used it here at work and it resulted in code that ran more than 
twice as fast, though we have never tried it with MySQL.

And greetings to a fellow UofA student (though I've now graduated).

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to