There's nothing magic about the two: static memory is already present when
your process starts, i.e. for every single global variable there's memory available
for it already. Dynamic memory management simply asks chunks/pages of
memory from the OS and hands it out to your process piecemeal when malloc
requests for it.
kind regards,
Jos
Embedded linux in the sense core have own fixed memory for montavista like linux and it is having some minimum size of memory only.also i want the processing time for the application is less i.e., faster response.
Here application means, which we are creating with some c code ( that have code like mem allocation, some more req operations and freeing it at last).
I want to know some details about internal things, like how memory allocation happening with memory for the static and dynamic memory allocations during which (build /run) time ?
which process will take time to allocate mem either static or dynamic?
I thought dynamic memory will take more time than static.. And it will do some more internal processes.. is it? can plz you explain me on this?