diff --git a/README.md b/README.md index 8c8ae39..a332e04 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,8 @@ Note, you can quit picoc's interactive mode using control-D. # Environment variables In some cases you may want to change the picoc stack space. The default stack -size is 1MB (PICOC_STACK_SIZE in picoc.c) which should be large enough for most -programs. +size is 512KB (see PICOC_STACK_SIZE in picoc.c) which should be large enough +for most programs. To change the stack size you can set the STACKSIZE environment variable to a different value. The value is in bytes. diff --git a/picoc.c b/picoc.c index 5a7fa33..9afaedc 100644 --- a/picoc.c +++ b/picoc.c @@ -12,7 +12,8 @@ #include /* Override via STACKSIZE environment variable */ -#define PICOC_STACK_SIZE (1024*1024) /* space for the the stack */ +/* stack space */ +#define PICOC_STACK_SIZE (512000) int main(int argc, char **argv) {