tigrot Well-Known Member Licensed User Longtime User Jan 18, 2018 #1 Hi everybody, I am looking for a way to allocate static data in flash memory space. I have the need to access large conversion tables. Defining the array/table as const is enough? Regards Mauro
Hi everybody, I am looking for a way to allocate static data in flash memory space. I have the need to access large conversion tables. Defining the array/table as const is enough? Regards Mauro
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2018 #2 https://www.b4x.com/android/forum/threads/using-progmem-to-save-memory.71114/#content Upvote 0
tigrot Well-Known Member Licensed User Longtime User Jan 18, 2018 #3 So const in b4r doesn't define a flash memory allocated object? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2018 #4 No. There is no relation between const and flash only data. Note that this is also true in C. You must use PROGMEM for that. Upvote 0
No. There is no relation between const and flash only data. Note that this is also true in C. You must use PROGMEM for that.