Thanks for your valuable reply.....................
@ amraldo
But you should take care of wrapping.
Have you ever though of using a profiler?
I am begineer in C field. So I am not aware of wrapping. Also I am using NIOS2 soft processor and using Nios 2 Instruction Set Simulator. I am new to that tool. So I don't know how to use that profiler. Can you just tell me how to use any kind of profiler to extract profiling datas? Thanks in advance.......