diff options
author | stijn <stijn@ignitron.net> | 2017-05-01 11:59:39 +0200 |
---|---|---|
committer | stijn <stijn@ignitron.net> | 2017-05-01 12:06:43 +0200 |
commit | c41fe70ef287882467fa0978ca0c678094c0bbec (patch) | |
tree | 7a8e246bfc706ff49e80c719560fea835e36f956 | |
parent | fa823ea893e251214f1e8eea371c922ed6ba9a6d (diff) | |
download | micropython-c41fe70ef287882467fa0978ca0c678094c0bbec.tar.gz micropython-c41fe70ef287882467fa0978ca0c678094c0bbec.zip |
windows/README: Add a note about stack usage for msvc
Add information as discussed in #2927 to the readme to make the easier
to discover.
-rw-r--r-- | windows/README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/windows/README.md b/windows/README.md index a263d85495..6d32499032 100644 --- a/windows/README.md +++ b/windows/README.md @@ -45,6 +45,17 @@ To build from the command line: msbuild micropython.vcxproj +__Stack usage__ + +The msvc compiler is quite stack-hungry which might result in a "maximum recursion depth exceeded" +RuntimeError for code with lots of nested function calls. +There are several ways to deal with this: +- increase the threshold used for detection by altering the argument to `mp_stack_set_limit` in `unix/main.c` +- disable detection all together by setting `MICROPY_STACK_CHECK` to "0" in `windows/mpconfigport.h` +- disable the /GL compiler flag by setting `WholeProgramOptimization` to "false" + +See [issue 2927](https://github.com/micropython/micropython/issues/2927) for more information. + Running on Linux using Wine --------------------------- |