raise the max instruction count for the VM to one billion

This commit is contained in:
Araq 2018-03-18 11:04:53 +01:00
commit 4301744e49
3 changed files with 8 additions and 2 deletions

View file

@ -27,6 +27,10 @@
### Compiler changes ### Compiler changes
- The VM's instruction count limit was raised to 1 billion instructions in order
to support more complex computations at compile-time.
### Bugfixes ### Bugfixes
- The `importcpp` pragma now allows importing the listed fields of generic - The `importcpp` pragma now allows importing the listed fields of generic

View file

@ -357,7 +357,9 @@ const
errXExpectsTwoArguments: "\'$1\' expects two arguments", errXExpectsTwoArguments: "\'$1\' expects two arguments",
errXExpectsObjectTypes: "\'$1\' expects object types", errXExpectsObjectTypes: "\'$1\' expects object types",
errXcanNeverBeOfThisSubtype: "\'$1\' can never be of this subtype", errXcanNeverBeOfThisSubtype: "\'$1\' can never be of this subtype",
errTooManyIterations: "interpretation requires too many iterations", errTooManyIterations: "interpretation requires too many iterations; " &
"if you are sure this is not a bug in your code edit " &
"compiler/vmdef.MaxLoopIterations and rebuild the compiler",
errCannotInterpretNodeX: "cannot evaluate \'$1\'", errCannotInterpretNodeX: "cannot evaluate \'$1\'",
errFieldXNotFound: "field \'$1\' cannot be found", errFieldXNotFound: "field \'$1\' cannot be found",
errInvalidConversionFromTypeX: "invalid conversion from type \'$1\'", errInvalidConversionFromTypeX: "invalid conversion from type \'$1\'",

View file

@ -16,7 +16,7 @@ const
byteExcess* = 128 # we use excess-K for immediates byteExcess* = 128 # we use excess-K for immediates
wordExcess* = 32768 wordExcess* = 32768
MaxLoopIterations* = 1500_000 # max iterations of all loops MaxLoopIterations* = 1_000_000_000 # max iterations of all loops
type type