This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: improved data-flow analysis for Kawa
* Per Bothner [2011-04-23 07:39] writes:
> On 04/23/2011 12:19 AM, Helmut Eller wrote:
>> * Per Bothner [2011-04-18 18:41] writes:
>>
>>> I've checked in a much-improved data-flow framework for Kawa.
>>> This is similar to Static Single Assignment, but of course
>>> with the extra complication of functions and classes.
>>
>> I now get a stack overflow with when compiling some of my code. It
>> seems to be in a big function with lots of macros. Do you have any tips
>> of how one could reduce that to a small test case?
>
> You just have to remove code as long as it still fails. It's
> trial-and-error.
> Often you can try simplifying procedure bodies radically - for example
> have a function just replace a constant or a parameter value.
It's still very big after that. And I can remove parts in a dozen
different places to toggle between failing/non-failing.
If I increase the JVM stack size to 350k it succeeds. Does the new pass
just need a lot more stack or do I see a bug?
Helmut