Skip to content

Commit

Permalink
windows/README: Add a note about stack usage for msvc
Browse files Browse the repository at this point in the history
Add information as discussed in micropython#2927 to the readme to make the easier
to discover.
  • Loading branch information
stinos committed May 1, 2017
1 parent fa823ea commit c41fe70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------
Expand Down

0 comments on commit c41fe70

Please sign in to comment.