lower default stack space to 512KB, update readme

This commit is contained in:
Joseph Poirier 2015-06-15 15:01:45 -05:00
parent d32bb50194
commit 2c4aa30164
2 changed files with 4 additions and 3 deletions

View file

@ -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.

View file

@ -12,7 +12,8 @@
#include <string.h>
/* 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)
{