On Mon, 2007-07-09 at 21:49 +0100, Pedro Alves wrote:
> >> _cegcc_main_data:
> >>       .word 0 /* _cegcc_main_handler */
> >>       .word 0 /* _cegcc_main_size */
>                          ^^^
> This is not supposed to be the size, but a pointer
> to data to the passed to the handler.  The size goes into the
> .pdata structure, as does the prologue size.  It looks like
> you've already found how to get at the prologue size, as
> you're outputting "yow prologue" - probably from arm.c, right?

Yes, I got the "yow" lines by messing in arm.c, didn't look further yet.

> > Right now this is pretty useless, I'd need an interface to be able to
> > get to this from source. Working on that.
> > 
> 
> That's when things start getting interesting.  Curious on what you
> are thinking to do it?  Are you going to try to change the c parser
> to understand __try/__except/__finally, or are you looking for a
> new __attribute__, a new builtin, other?

I was going to look at a new __attribute__ .

> Great to see some work on this!  A hint:  You can infer a lot of info
> of SEH on ARM from the more abundant info on SEH on x64, which
> is similar.  Also looking for OS/2 model of exceptions is informative,
> as it is very similar to SEH on x86 - this is comprehensive as
> MSFT worked on it.

Thanks, I'll remember that. I found a lot of stuff on the net. 30% of
what I found is people fighting to prove to each other that either SEH
is better than C++ EH or the other way around. Another 30% is explaining
how SEH works internally, the rest is stuff on how to use it.

Imagine how the world would be a better place if vendors would go
through the trouble of actually providing sensible documentation :-)

Just kidding. I'm not concentrating on any of that right now, just
trying to get something sensible implemented. After that, we can add
various kinds of cream or sugar so we can implement what the developer
needs. (One will want C++ EH, the other SEH, another wants to trap WinCE
exceptions, ..)

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: 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

Reply via email to