|
WinCE Exception handling support in gcc: msg#00067gnu.cegcc.devel
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
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> |
|---|---|---|
| Previous by Date: | Re: Building pthread.: 00067, Pedro Alves |
|---|---|
| Next by Date: | Re: Building pthread.: 00067, Leonardo Weiss Chaves |
| Previous by Thread: | Emulating and debug tipsi: 00067, Iris |
| Next by Thread: | Re: WinCE Exception handling support in gcc: 00067, Pedro Alves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |