Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
4a5895c4
Commit
4a5895c4
authored
Jan 09, 2015
by
Damien George
Browse files
py: Disable stack checking by default; enable on most ports.
parent
85e8e2ed
Changes
7
Hide whitespace changes
Inline
Side-by-side
bare-arm/main.c
View file @
4a5895c4
...
...
@@ -6,7 +6,6 @@
#include
"py/parsehelper.h"
#include
"py/compile.h"
#include
"py/runtime.h"
#include
"py/stackctrl.h"
#include
"py/repl.h"
#include
"py/pfenv.h"
...
...
@@ -48,7 +47,6 @@ void do_str(const char *src) {
}
int
main
(
int
argc
,
char
**
argv
)
{
mp_stack_set_limit
(
10240
);
mp_init
();
do_str
(
"print('hello world!', list(x+1 for x in range(10)), end='eol
\n
')"
);
mp_deinit
();
...
...
esp8266/mpconfigport.h
View file @
4a5895c4
...
...
@@ -9,6 +9,7 @@
#define MICROPY_MEM_STATS (0)
#define MICROPY_DEBUG_PRINTERS (0)
#define MICROPY_ENABLE_GC (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_HELPER_LEXER_UNIX (0)
#define MICROPY_ENABLE_SOURCE_LINE (1)
...
...
py/mpconfig.h
View file @
4a5895c4
...
...
@@ -205,7 +205,7 @@
// Whether to check C stack usage. C stack used for calling Python functions,
// etc. Not checking means segfault on overflow.
#ifndef MICROPY_STACK_CHECK
#define MICROPY_STACK_CHECK (
1
)
#define MICROPY_STACK_CHECK (
0
)
#endif
// Whether to have an emergency exception buffer
...
...
qemu-arm/mpconfigport.h
View file @
4a5895c4
...
...
@@ -9,6 +9,7 @@
#define MICROPY_MEM_STATS (0)
#define MICROPY_DEBUG_PRINTERS (0)
#define MICROPY_ENABLE_GC (0)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_HELPER_REPL (0)
#define MICROPY_HELPER_LEXER_UNIX (0)
#define MICROPY_ENABLE_SOURCE_LINE (0)
...
...
stmhal/mpconfigport.h
View file @
4a5895c4
...
...
@@ -35,6 +35,7 @@
#define MICROPY_EMIT_INLINE_THUMB (1)
#define MICROPY_ENABLE_GC (1)
#define MICROPY_ENABLE_FINALISER (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_ENABLE_SOURCE_LINE (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
...
...
teensy/mpconfigport.h
View file @
4a5895c4
...
...
@@ -7,6 +7,7 @@
#define MICROPY_EMIT_INLINE_THUMB (1)
#define MICROPY_ENABLE_GC (1)
#define MICROPY_ENABLE_FINALISER (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_ENABLE_SOURCE_LINE (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
...
...
unix/mpconfigport.h
View file @
4a5895c4
...
...
@@ -41,6 +41,7 @@
#endif
#define MICROPY_ENABLE_GC (1)
#define MICROPY_ENABLE_FINALISER (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_MEM_STATS (1)
#define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_HELPER_REPL (1)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment