Re: c++ code executes very slowly - sjlj EH to blame?

2004-12-22 Thread Adam McKee
Hi Bill, Here's what I did to build gcc-3.4.3 with dwarf2 EH: First, get the gcc sources (duh) and Danny Smith's patch to support dwarf2 EH on cygwin: http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01989.html The patch is meant for gcc-4.0 but it worked for me on 3.4.3. % cd / % mkdir instal

Re: c++ code executes very slowly - sjlj EH to blame?

2004-12-20 Thread Adam McKee
Thanks Danny for helping me build gcc/g++ with dwarf2 EH. Performance of my app is now on par with linux - where before it was about 3x slower (not 6x as I previously reported... sorry for the confusion). It looks like Cygwin is already planning to move away from sjlj EH -- all I can say is God S

Re: c++ code executes very slowly - sjlj EH to blame?

2004-12-15 Thread Adam McKee
Hi Larry, Thanks for your reply. About the messages you referred me to: /// http://www.cygwin.com/ml/cygwin/2004-11/msg00962.html His situation is similar in terms of symptoms, but my test program (that throws an exception and tries to catch i

c++ code executes very slowly - sjlj EH to blame?

2004-12-15 Thread Adam McKee
My app runs about 6 times faster on linux than cygwin, even though it spends the bulk of its time doing pure computation in user-space: strace shows a minimum of system calls being made. Profiling shows that the culprit could be sjlj (set-jump/long-jump) EH. After googling around a bit, I found t