#53 Execution time and machine cycles

closed
nobody
None
5
2006-11-04
2006-11-03
Anton
No

Can you add execution time in listing file for every
function in program, and add machine cycles in listing
file in line with every assembler codes ? Thanks.

Discussion

  • Maarten Brock
    Maarten Brock
    2006-11-03

    • status: open --> pending
     
  • Maarten Brock
    Maarten Brock
    2006-11-03

    Logged In: YES
    user_id=888171

    Anton,

    It will be impossible to predict the execution time of functions as it depends on runtime inputs.

    It is also hard to add machine cycles for every instruction as it differs from derivative to derivative these days.
    Not to mention mcu's with an instruction cache.

    I think you're better off writing a utility for this for the mcu of your choice that parses the generated asm files.

    Maarten

     
  • Anton
    Anton
    2006-11-04

    Logged In: YES
    user_id=1099099

    Marteen,

    Thanks for your explanation, i appreciate it.

     
  • Anton
    Anton
    2006-11-04

    • status: pending --> open
     
  • Maarten Brock
    Maarten Brock
    2006-11-04

    • status: open --> closed
     
  • Logged In: YES
    user_id=589052

    another option would be to try persuading asx8051
    to output the (plain 8051) cycles to the assembly
    listing (*.lst) file like:

    0059 EE 790 mov a,r6 ; 12
    005A 12s00r00 791 lcall __gptrput ; 24

     
  • Logged In: YES
    user_id=589052

    another option would be to try persuading asx8051
    to output the (plain 8051) cycles to the assembly
    listing (*.lst) file like:

    0059 EE 790 mov a,r6 ; 12
    005A 12s00r00 791 lcall __gptrput ; 24