|
Boost Users : |
Subject: Re: [Boost-users] [xpressive] Stack overflow with small stacks without compiler optimization turned on
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2011-11-21 05:31:24
Hello Eric,
thanks a lot for your answer.
On Fri, Nov 18, 2011 at 5:16 PM, Eric Niebler <eric_at_[hidden]> wrote:
> On 11/18/2011 4:01 AM, Ovanes Markarian wrote:
> > If you are interested I can post the compiled executable and the core
> > dump file. When using optimization this works fine (it crashes with
> > stack size being less equal 12K), but the main question is: Is it really
> > normal to have more than 600 function calls in Debug mode?
>
> Yes, this is normal. Xpressive makes extensive use of the stack because
> its fast and cheap. If you want a regex library that uses very little
> stack, use Boost.Regex in non-recursive mode.
>
> For me it is fine. My main worry was if I did smth. wrong and I wanted to
be sure. As I can see lots of these calls are eliminated when using
optimization.
With Kind Regards,
Ovanes
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net