Re: Compiling C++ modules

Bongani Hlope
2006-04-25T21:08:40Z

On Tuesday 25 April 2006 22:37, Avi Kivity wrote:
> Bongani Hlope wrote:
> > To enable stack unwinding for exception handling, extra exception-related
> > information about each function needs to be available for each stack
> > frame. This information describes which destructors need to be called (so
> > that local objects can be cleaned up), indicates whether the current
> > function has a try block, and lists which exceptions the associated catch
> > clauses can handle.
> >
> > Take a look at a typical OOPS trace and tell me if that will fit in a 4k
> > stack with C++ and stack unwinding.
>
> C++ on Linux does not put any information on the stack for exception
> handling purposes. Windows implementations do that but (a) I think the
> Windows kernel has a 12K stack (b) Linux is unlikely to use the
> Microsoft C++ compiler.

Cool thanx, I see that g++ (3,x) uses Dwarf2 to store the frame info. Unlike
Microsoft.

---
Choose the right tools, use them the right way.
Refuse to compromise, expect to succeed,
Then start again.