twittidai / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Allow configurable StackSize #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Instead of hard-coding HEAP_SIZE per platform, allow user to define in 
environment variable (if supported by platform).

Something like this:

    StackSize = getenv("STACKSIZE") ? atoi(getenv("STACKSIZE")) : DEFAULT_HEAP_SIZE;

Then change HEAP_SIZE references to StackSize.
I use malloc as the real memory heap. This the Heap functions really represent 
the stack, that's why I used the name StackSize, not HeapSize.

Original issue reported on code.google.com by duncan.f...@gmail.com on 27 Jul 2010 at 4:07

GoogleCodeExporter commented 8 years ago
Thanks for the idea.

I've changed the type from "defect" to "enhancement". I'll add it to the 
feature request list.

Original comment by zik.sale...@gmail.com on 27 Jul 2010 at 8:33

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r477.

Original comment by zik.sale...@gmail.com on 27 Jul 2010 at 2:03