Skip to content

SRGDamia1/avrcycles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avrcycles

The project is just one Python script: avrcycles.py.

avrcycles.py reports how many clock cycles are consumed:

  • pull the assembly instruction mnemonic from each line of code in the .avra file to analyze
  • look up each instruction in a dictionary to find the number of cycles consumed by that instruction
  • report the total number of cycles consumed by the code in the .avra file

Usage

  • manually identify a block of assembly that corresponds to the C code in question
  • paste this block into a new .avra file
  • run avrcycles.py on that file

Example:

avrcycles.py temp.avra

Documentation

See more documentation on readthedocs.

Sphinx tutorial

I created this project to learn to use Sphinx and Read the Docs. I recorded my notes as a tutorial in readthedocs-tutorial.md.

About

Calculate clock cycles from AVR disassembly output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.4%
  • Roff 2.6%