memSize assignment
wboeke opened this issue · 1 comments
wboeke commented
Hello,
The variable memSize probably is'nt used correctly.
There is a statement
memSize = 2561024CELL_SIZE;
and also:
M = PCELL(malloc(memSize*CELL_SIZE));
So two times a multiplication with 8
Also a question: the word 'words' has no effect (so I implemented it in C). There is a file 'words.txt', but if I try it the program crashes.
For the rest: I like this project very much, because all the interesting forth constructs are available, in a small program.
pahihu commented
Hi,
You are correct. memSize should be in CELLs, I have fixed it and pushed to GitHub.
The word ‘words’ is defined at the beginning of run.f, it converts number of bytes to
number of words, rounded up.
Regards,
pahihu
… On 2023. Jul 19., at 12:31, W.Boeke ***@***.***> wrote:
Hello,
The variable memSize probably is'nt used correctly.
There is a statement
memSize = 2561024CELL_SIZE;
and also:
M = PCELL(malloc(memSize*CELL_SIZE));
So two times a multiplication with 8
Also a question: the word 'words' has no effect (so I implemented it in C). There is a file 'words.txt', but if I try it the program crashes.
For the rest: I like this project very much, because all the interesting forth constructs are available, in a small program.
—
Reply to this email directly, view it on GitHub <#2>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADTEB255RDOUMFZDYIDNLKLXQ6ZRRANCNFSM6AAAAAA2PWUU4Y>.
You are receiving this because you are subscribed to this thread.