Category : alloca

I’m using alloca a lot these days, to allocate temporary buffers. In my application (signal processing) this is a common need. The question is – when allocating multiple arrays, is it better (performance-wise) to use alloca just once like this: float *array1 = (float*)alloca(4096 * 4); float *array2 = array1 + 1024; float *array3 = ..

Read more