GNU bug report logs - #13088
stack overflow while compiling

Previous Next

Package: guile;

Reported by: rixed <at> happyleptic.org

Date: Wed, 5 Dec 2012 16:37:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 13088 <at> debbugs.gnu.org (full text, mbox):

From: rixed <at> happyleptic.org
To: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
Cc: 13088 <at> debbugs.gnu.org
Subject: Re: bug#13088: stack overflow while compiling
Date: Wed, 12 Dec 2012 09:33:35 +0100
-[ Tue, Dec 11, 2012 at 11:29:31PM +0100, Stefan Israelsson Tampe ]----
> Anyway in vm.c I changed the
> #define VM_DEFAULT_STACK_SIZE (64 * 1024)
> 
> to
> #define VM_DEFAULT_STACK_SIZE (64 * 1024 * 64)
> 
> and recompiled!

Oh, I hadn't realized you were speaking about the VM's stack. It all makes
sense now.
Any inconvenient to set this stack even bigger ? How many such stacks do we
have in a running environment ? One per thread ?

> Then I can compile to tree-il. Compiling all the way does not work well,
> But if you enter
> scheme@(guile-user)> (compile program #:to 'value #:opts '(#:partial-eval?
> #f #:cse? #f))  ;;NO OPTIMIZATION PASSES
> 
> It will compile to.
> 
> $7 = #<procedure 3708400 (proto server-port client-zone server-zone
> signature-id)>

Yes, I did this and as a result the compiled function was... 20% faster !?
(note that my bench exclude the compilation time, and uses get-internal-run-time
as a clock source).

Thank you very much for all these advices.
As usual, support from free software community is much better than it is from
any business I've seen :-)





This bug report was last modified 12 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.