Home > Mobile >  How to record trace of assembly instructions and their corresponding timestamps of a C program on ma
How to record trace of assembly instructions and their corresponding timestamps of a C program on ma

Time:10-24

I have the following C program:

int main() {    
    float number1, number2, sum=0.;
    number1 = .5;
    number2 = .3;
    while(sum > -10000000.)
        sum -= number1   number2;        
    printf("%f",sum);
    return 0;
}

Its corresponding assembly is as follows:

_main:                                  ; @main
    .cfi_startproc
;            
  • Related