Removing printf's from low RAM.
Posted: Sat Jan 13, 2024 12:28 am
Hi All,
As you well know, everytime you use a printf in C, or declare a char* with a default value you waste precious low RAM.
I vaguely remember that this forum post titled cc65... Out of memory on a small program?(https://commanderx16.com/forum/viewtopi ... ntf#p23265) mentioned a technique using a string resource file to solve this.
However this forum post is not longer accessible.
Am I remembering right, or is there another way to get strings off the low RAM?
Thanks
As you well know, everytime you use a printf in C, or declare a char* with a default value you waste precious low RAM.
I vaguely remember that this forum post titled cc65... Out of memory on a small program?(https://commanderx16.com/forum/viewtopi ... ntf#p23265) mentioned a technique using a string resource file to solve this.
However this forum post is not longer accessible.
Am I remembering right, or is there another way to get strings off the low RAM?
Thanks