6 ms·
I don't think this post is actually that representative of the field. Fretting over the binary size of string constants is not something I've ever seen. Genera
by calamari4065 3y ago
I don't think this post is actually that representative of the field.
Fretting over the binary size of string constants is not something I've ever seen. Generally if you don't have enough flash to store strings, you also don't have a use for strings. You won't be logging to external memory or to serial. If you have that little flash, you generally also have very few CPU cycles. Logging of any sort would take up a huge percentage of your CPU cycles and you won't have anything left to run the application. Not to mention the RAM, which is usually much much smaller than flash.
The problem posed in TFA isn't really a problem. If you need continual logging, you must use a chip with more CPU, which almost always means more memory. If you have a chip with 512B of flash and 128B of RAM, you don't need logging.
Exceptions apply, of course, but this is a case of wrong tool for the wrong problem.