3/31/2024 0 Comments What is static ram and dynamic ramIf you have a constant is the actual contents of the variable stored in static however is its memory location (pointer) stored in dynamic?Īnd for a non constant variable you have two copies of it, one in flash and one is SRAM? How are variables stored differently in static and dynamic memory? This is what I would think, however when I add X amount of characters too my char* the Arduino console shows the dynamic memory increasing by X amount of bytes. However are all constants such as : char* array = "My Char Array" When I declare a variable that is going to be used at runtime : char array = "My Char Array" You also have dynamic memory which is SRAM and on the Arduino Uno is limited to a small 2kb. I understand you have static memory which could be flash or EEPROM. I'm really struggling for space so I'm having to optimize all I can on memory however having a few questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |