|
From: James W. W. <ja...@fr...> - 2005-01-31 21:47:02
|
>> That said, the Quesa source code does not currently contain any >>explicit throw statements. Hmm, I see that I did use one new >>statement without nothrow, I guess I should fix that. What happens >>to a try/catch block if exceptions are off? > >I don't know -- one would hope it would cause a compile-time error. So it does. Well, that throws a monkey wrench in the works. There are some try/catch blocks in GLTextureManager.c. I could conditionalize them, but I don't know a portable way to test whether exceptions are turned on. >>What compilers have a noticeable overhead for exceptions? I don't >>think either gcc or CodeWarrior fall into that category. > >CodeWarrior does, or at least did several years ago when I last >looked into it. It's possible things have changed since then. There is some size overhead (whether it is "noticeable" is subjective), but I don't think there is any speed overhead. Since 1996 CodeWarrior has advertised "zero runtime overhead exception handling". -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |