On Sun, 2007-06-03 at 19:01 +0100, Pedro Alves wrote: > The exception c++ model that both mingw32ce and cegcc use is the sjlj model. > It is similar with the SEH model on x86. It certainly works. > > SEH is an OS thing, so it always works, but it happens that registering > handlers manually is much harder on ARM than it is on x86/9x/NT.
Pedro, I've been trying to figure out what kind of exception handling gcc supports. I started by simply trying to use -fexceptions, but that doesn't appear to influence what the compiler does. I tried it on arm-wince-mingw32ce-gcc, the size of the .o file produced doesn't change. Trying the same on the x86 gcc that comes with my Linux distribution, this does produce a larger .o file. Objdump reveals that something called ".eh_frame" is added. I then looked at the gcc sources, and found a configure option called --enable-sjlj-exceptions . Even with that turned on, I don't see a difference in the .o file produced by the ARM compiler. The src/gcc/gcc/doc directory comes up almost empty if you grep for SJLJ, and src/gcc/gcc/except.[ch] don't contain much documentation either. What am I missing ? Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel