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

nimly Uses Too Many Loops In Compile-time #11

Open
loloiccl opened this issue Mar 21, 2019 · 2 comments

Comments

Projects
None yet
1 participant
@loloiccl
Copy link
Owner

commented Mar 21, 2019

No description provided.

@loloiccl loloiccl added the bug label Mar 21, 2019

@loloiccl

This comment has been minimized.

Copy link
Owner Author

commented Mar 21, 2019

You can use niml with compiler build with vmdef patched as follows

diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim
index 7a2bc1607..91706ae5d 100644
--- a/compiler/vmdef.nim
+++ b/compiler/vmdef.nim
@@ -17,7 +17,7 @@ const
   byteExcess* = 128 # we use excess-K for immediates
   wordExcess* = 32768
 
-  MaxLoopIterations* = 3_000_000 # max iterations of all loops
+  MaxLoopIterations* = high(int) #3_000_000 # max iterations of all loops

@loloiccl loloiccl added enhancement help wanted and removed bug labels Mar 22, 2019

@loloiccl loloiccl changed the title niml uses too many stack niml Uses Too Many Times of Loop In Compile-time Mar 22, 2019

@loloiccl loloiccl changed the title niml Uses Too Many Times of Loop In Compile-time nimly Uses Too Many Loops In Compile-time Apr 11, 2019

@loloiccl

This comment has been minimized.

Copy link
Owner Author

commented Apr 11, 2019

improve some #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.