-
Notifications
You must be signed in to change notification settings - Fork 31
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
bfc hangs due to compile-time evaluation #28
Comments
Another similar problem is also found when compiling:
it shows the warning but the compilation is not stopping. |
This looks like an issue where we aggressively unroll the loop due to compile-time evaluation, send a huge amount of IR to LLVM, and then it spends ages trying to optimise the IR. I've added an undocumented BFC_MAX_STEPS which limits the execution steps and thus the LLVM IR size. Nonetheless, execution steps are still fast, it's the IR munging afterwards that's taking the time. Possibly related: #26. |
Since the issue is addressed by the owner. I will close this thread. |
I think this a genuine bug worth fixing, so I'm going to reopen this :) |
I am trying to compile the following code with
bfc -O2
:. + [[ [[ >. [+ [<>]]] >]<>+ .]>< ,-.,,+++[]---]
But it shows warning:
But no exit. It should fall into some infinite loop or similar things.
The text was updated successfully, but these errors were encountered: