logo       

WinCE Exception handling support in gcc: msg#00067

gnu.cegcc.devel

Subject: WinCE Exception handling support in gcc

Guys,

I've been digging in gcc internals and succeeded in implementing stuff
that allows us to write code such as
int main(int argc, char *argv[])
__attribute__((__exception_handler__(handler)));
to indicate that handler is the exception handler for function main.

The patch is attached, it only affects four files in gcc.

What this gcc patch does is to generate an additional couple of lines of
assembler code for those functions that have an exception handler.

Attached is an example in C and the assembler code generated for it. In
the arm-wince-mingw32ce world, only patches to gcc are required, no
changes to any runtime are needed. (I need to look into the cegcc
environment, things are slightly different there because a default
exception handler is in place there.)

Comments are welcome as always.

Pedro, is it ok to commit this to SVN ?

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

Attachment: syntax.c
Description: Text Data

Attachment: syntax.s
Description: Text document

Attachment: patch-gcc
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________
Cegcc-devel mailing list
Cegcc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise