sameer17kelaskar
Newbie
Hi,
When it comes to writing firmware in C for microcontrollers like ARM, we consider memory consumption a prominent factor, so considering that I want to know that if I use pointers as members in a structure and before making a variable of that structure I allocate memory to the pointer (dynamic allocation), is it okay or should I use array as structure member (static memory assign) and then use it.
Apericiate the help.
When it comes to writing firmware in C for microcontrollers like ARM, we consider memory consumption a prominent factor, so considering that I want to know that if I use pointers as members in a structure and before making a variable of that structure I allocate memory to the pointer (dynamic allocation), is it okay or should I use array as structure member (static memory assign) and then use it.
Apericiate the help.