[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Fixed stack size
From: |
schugk |
Subject: |
[Chicken-users] Fixed stack size |
Date: |
Wed, 09 Feb 2011 20:41:19 +0100 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.6) |
Hi,
I am developing an application for an embedded device with chicken
scheme 4.6.3. My program should use a fixed size of memory. I restrict
heap usage with -:h500k .
./loop 10000 -:h500k -:hm500k -:hs0 -:hg0 -:D
...
[debug] heap resized to 512000 bytes
...
[debug] stack resized to 131072 bytes
With a lower heap size:
./loop 100000 -:h50k -:D
...
[debug] resizing heap dynamically from 51k to 500k ...
the heap size is changed. That is fixed with -:hm50K. But if i want a
fixed stack size then my application terminates with:
./loop 100000 -:h500k -:hm500k -:s200K -:D
[panic] out of memory - cannot allocate vector (heap resizing
disabled) - execution terminated
No stack resize message is shown for debug. Even a greater stack size
of 2 or 8 MByte has the same effect. Why?
Sandro
- [Chicken-users] Fixed stack size,
schugk <=