Question
Best declaration of array of strings
Posted on July 14, 2012 at 17:09
Hi all,
I am developping an application on 16K RAM device and I am facing limitation of RAM size so I want to optimize the definition of the following pointer to strings and I want to know if I am well understanding the stuffs When I define the array as following, the whole buffer (128 x string size) will be programmed in RAM: uint8_t* Buffer[128] = { ''STR1'', ''STR2'',.....}; When I define the array as folllowing, the whole buffe is programmed in flash memory and hence I optimized the RAM memory const uint8_t Buffer[128] [20]= { ''STR1'', ''STR2'',.....}; What do you think?MCU Lüfter