RuntimeOptions
✖
RuntimeOptions
Details


- RuntimeOptions applies to the execution of the compiled function.
- RuntimeOptions can take the following overall settings:
-
"Quality" optimize for quality of final results "Speed" optimize for speed of getting results - RuntimeOptions can also take the following nested settings:
-
"CatchMachineOverflow" False whether real overflow should be caught as it happens "CatchMachineIntegerOverflow" True whether integer overflow should be caught "CompareWithTolerance" True whether comparisons should work similarly to SameQ "EvaluateSymbolically" True whether to evaluate with symbolic arguments "RuntimeErrorHandler" Evaluate a function to apply if there is a fatal runtime error executing the function "WarningMessages" True whether warning messages should be emitted - RuntimeOptions->"Speed" is equivalent to the following nested settings:
-
"CatchMachineOverflow" False "CatchMachineIntegerOverflow" False "CompareWithTolerance" False "EvaluateSymbolically" True "RuntimeErrorHandler" Evaluate "WarningMessages" True - RuntimeOptions->"Quality" is equivalent to the following nested settings:
-
"CatchMachineOverflow" True "CatchMachineIntegerOverflow" True "CompareWithTolerance" True "EvaluateSymbolically" True "RuntimeErrorHandler" Evaluate "WarningMessages" True
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Typically, integer arithmetic overflow is caught and the computation switches to use bignums:

https://wolfram.com/xid/0v5z4s5btewlv-jw23o


Turning off runtime checks leads to maximum speed but the result can be incorrect if the numbers overflow:

https://wolfram.com/xid/0v5z4s5btewlv-hro72

Options (5)Common values & functionality for each option
CatchMachineIntegerOverflow (1)
Typically, machine integer overflow is caught and generates a runtime error:

https://wolfram.com/xid/0v5z4s5btewlv-bkaj6j


Turning off machine integer overflow checking leads to faster results, which may be incorrect in some cases:

https://wolfram.com/xid/0v5z4s5btewlv-fqdx81

RuntimeErrorHandler (1)
The "RuntimeErrorHandler" setting is used when there is a runtime error:

https://wolfram.com/xid/0v5z4s5btewlv-dr181
With no error, the compiled function works as normal:

https://wolfram.com/xid/0v5z4s5btewlv-by9gca

If there is a runtime error, the function behaves differently:

https://wolfram.com/xid/0v5z4s5btewlv-cmhh3s


EvaluateSymbolically (3)
The default is to evaluate the function symbolically with symbolic arguments:

https://wolfram.com/xid/0v5z4s5btewlv-e8thqu


With "EvaluateSymbolically"->False, the function returns unevaluated:

https://wolfram.com/xid/0v5z4s5btewlv-d3cu59

This evaluates if the symbolic argument is replaced with a number:

https://wolfram.com/xid/0v5z4s5btewlv-irfp3u

Sometimes symbolic evaluation does not give what you intend:

https://wolfram.com/xid/0v5z4s5btewlv-c5iunw


Preventing symbolic evaluation keeps the original intent:

https://wolfram.com/xid/0v5z4s5btewlv-ebqyiu


https://wolfram.com/xid/0v5z4s5btewlv-i51ly

Symbolic evaluation may be slow for expressions that expand out:

https://wolfram.com/xid/0v5z4s5btewlv-eesbc1



https://wolfram.com/xid/0v5z4s5btewlv-e8ru5l

Wolfram Research (2010), RuntimeOptions, Wolfram Language function, https://reference.wolfram.com/language/ref/RuntimeOptions.html.
Text
Wolfram Research (2010), RuntimeOptions, Wolfram Language function, https://reference.wolfram.com/language/ref/RuntimeOptions.html.
Wolfram Research (2010), RuntimeOptions, Wolfram Language function, https://reference.wolfram.com/language/ref/RuntimeOptions.html.
CMS
Wolfram Language. 2010. "RuntimeOptions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RuntimeOptions.html.
Wolfram Language. 2010. "RuntimeOptions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RuntimeOptions.html.
APA
Wolfram Language. (2010). RuntimeOptions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RuntimeOptions.html
Wolfram Language. (2010). RuntimeOptions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RuntimeOptions.html
BibTeX
@misc{reference.wolfram_2025_runtimeoptions, author="Wolfram Research", title="{RuntimeOptions}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/RuntimeOptions.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_runtimeoptions, organization={Wolfram Research}, title={RuntimeOptions}, year={2010}, url={https://reference.wolfram.com/language/ref/RuntimeOptions.html}, note=[Accessed: 29-March-2025
]}