I have a task to generate certain number of Data cache misses and Instruction cache misses. I got the basic idea of generating data cache-miss.
Now my task is to generate Instruction cache misses. I do not have any idea, what causes I-cache miss. Can someone help me by giving an idea for generating I-cache misses?
I am using Linux environment. Coding in C. And I am using Valgrind for profiling cache-data.
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status