Hi everyone,
I'm developing an application that will measure connectivity and throughput over a wireless network between embedded systems, and i just had a question about the performance issues associated with dynamically allocating a chunk of memory on the heap rather than just declaring it and having it be on the stack.
I already have quite a number of things on the stack, and there is an area of code im now developing that needs to remember a value for a very small amount of time, use it once, and then forget it. would it be wise to just declare a variable for it, say an int, or do a malloc(sizeof(int)) and use bitwise operations on it? thanks.