C programming question on arrays for embedded systems………….?

Question by cold_cold_cool: C programming question on arrays for embedded systems………….? lets say I have a loop, for(;;) { float *data; data = (float *)malloc(sizeof(1000)); // do something to data free(data); } does the compiler create only one memory location even thought the malloc() function is called several times? Is it simpler for program efficiency in embedded systems to define …