On Fri, Aug 14, 2009 at 7:31 PM, Paul Yuan wrote:
> Hi all,
>
> I used cachegrind to evaluate the cache behavior. But the Dw number is
> very strange.
I suspect the assembly code doesn't look like you think it does --
that it is doing more memory writes than you think, particularly for
the malloc(
Hi all,
I used cachegrind to evaluate the cache behavior. But the Dw number is
very strange.
//test1.c
#include
#include
#define N 2
int *parray[N];
int main ()
{
int i;
for (i = 0; i < N; i++)
parray[i] = (int *) malloc (10 * sizeof (int));
for (i = 0; i < N; i++)
parray[i