What are local arrays?
Hello everybody
I would like to know where are local arrays (I mean the arrays that are declared inside a function just to as intermediate variables) stored? in registers or in the memory?
The thing is, I want to calculate the arithmetic intensity of certain functions :
arithmetic intensity = number of arithmetic operations/number of memory accesses
and I don't know whether to regard an access to a local array as a memory access.
The local arrays Im talking about are created using malloc.
I would like to know where are local arrays (I mean the arrays that are declared inside a function just to as intermediate variables) stored? in registers or in the memory?
The thing is, I want to calculate the arithmetic intensity of certain functions :
arithmetic intensity = number of arithmetic operations/number of memory accesses
and I don't know whether to regard an access to a local array as a memory access.
The local arrays Im talking about are created using malloc.
0