12-12-2016, 09:25 AM
Sorry, I completely overlook this post!
ZXBasic uses the heap, but you can limit the heap size with a compiler option, --heap-size. The default is all the available memory after the code.
You can use --heap-size=256 (only 256 bytes) and that will be enough for many cases.
You can also change the ORG (ORiGin) of your compiled program, with the --org command line option.
The default is 32768, but you can change to any other position. (e.g. --org 26000)
Hope this help.
You can find more information about the command line options here:
<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb#Command_Line_Options">http://www.boriel.com/wiki/en/index.php ... ne_Options</a><!-- m -->
For more info, please, tell me. :roll:
ZXBasic uses the heap, but you can limit the heap size with a compiler option, --heap-size. The default is all the available memory after the code.
You can use --heap-size=256 (only 256 bytes) and that will be enough for many cases.
You can also change the ORG (ORiGin) of your compiled program, with the --org command line option.
The default is 32768, but you can change to any other position. (e.g. --org 26000)
Hope this help.
You can find more information about the command line options here:
<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Zxb#Command_Line_Options">http://www.boriel.com/wiki/en/index.php ... ne_Options</a><!-- m -->
For more info, please, tell me. :roll: