I am trying to understand the memory allocation while using a third party written Ring Buffer implementation.
I referred to two freely available implementations of ring buffer :
I tried to compile the available test programs in the above libraries on Ubuntu 16.04 PC. The libraries are provided with test programs. The test programs compile and I am able to use them successfully. However, what I want to know and understand is where does the memory for ring buffer elements ( in above libraries) get allocated ? Is it on the stack or the heap ?