Mikael,
I was updating the Elements of FlashForth document (after a long
pause) and was checking to see what would happen as I filled up the
parameter stack to the maximum of 26 elements for FF5 on a PIC18. I get
to the 20th element and the behaviour surprises me. I had expected to be
able to accumulate 26 elements because of the line
#define PARAMETER_STACK_SIZE d'52' ; 26 cells parameter stack
in p18f-main.cfg.
0 ok<#,ram>0
1 ok<#,ram>0 1
2 ok<#,ram>0 1 2
3 ok<#,ram>0 1 2 3
4 ok<#,ram>0 1 2 3 4
5 ok<#,ram>0 1 2 3 4 5
6 ok<#,ram>0 1 2 3 4 5 6
7 ok<#,ram>0 1 2 3 4 5 6 7
8 ok<#,ram>0 1 2 3 4 5 6 7 8
9 ok<#,ram>0 1 2 3 4 5 6 7 8 9
10 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10
11 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11
12 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12
13 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13
14 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
15 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
16 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
18 ok<#,ram>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 123456781518 ?
19 ok<#,ram>19
Is this a bug? Should there be a message to say that the stack has
overflowed along with the "?" ?
Regards,
Peter Jacobs
|