Tuesday, February 26, 2013

Apply BinarySearch in Debugging:


1)Problem1:
   I faced the problem in mips processor environment.
My program is crashing without giving any error or crash log.
I couldnt find the exact location of the crash.

Prior Expectation:
    We should know about the complete flow of the program.


How to find the crash location:

Apply binary search to enable logs.Add logs in middle of the code, if we are getting logs, we have a problem after middle part of the code.If we didnt get the log,the problem lies from beginning to middle of the program.


2) problem 2:
   For analysing performance of the program,
we have to find/optimize part of the program which is taking more time.

 How we can find this part of the program:

    Apply binary search to identify which part/statements taking more time.


  



 

Labels: ,

0 Comments:

Post a Comment

<< Home