-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'maximum recursion depth exceeded' while finalizing a large function #74
Comments
PeachPy wasn't designed as a backend for other languages, and it doesn't scale to large number of instructions/branches/labels. In particular, most analysis passes are implemented as recursive functions, where recursion depth can be as high as the number of basic blocks. Rewriting these recursive functions as while loops would likely solve your problem, but its not a high-priority task for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm generating a fairly large function using PeachPy (compiling from another language). When the function has a large number of labels it seems that the finalization invoked when
RETURN
is called is blowing the Python style.Part of the stack trace:
FWIW I'm not even using the register allocation features, all my registers are managed manually. A silly reproducer below:
The text was updated successfully, but these errors were encountered: