Skip to content
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

Koka compiler hangs when optimizations are enabled #608

Open
Caid11 opened this issue Nov 21, 2024 · 0 comments
Open

Koka compiler hangs when optimizations are enabled #608

Caid11 opened this issue Nov 21, 2024 · 0 comments

Comments

@Caid11
Copy link

Caid11 commented Nov 21, 2024

The Koka compiler hangs when I try to compile this code with optimizations:

https://github.com/Caid11/independent-study-fall-24/tree/optimizer-hang

It seems to enter an infinite loop at anything above -O0, and eventually exhausts the memory on my system. Interestingly, switching from vectors to lists in https://github.com/Caid11/independent-study-fall-24/blob/optimizer-hang/lib/map/champBacked.kk avoids the issue. (See Caid11/independent-study-fall-24@0a768b8 for a diff with the change).

My configuration's details:

  • OS: Windows 11
  • Compiler: clang version 18.1.8
  • Koka version: source build at dev commit 70f5609
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant