4 ms·
For optimising things like this I can recommend using ARM's ITM tracing. Then you can get a view of every clock cycle and what is going on in the CPU, the cach
by londons_explore 8y ago
For optimising things like this I can recommend using ARM's ITM tracing.
Then you can get a view of every clock cycle and what is going on in the CPU, the caches, the hardware peripherals, the DMA controller etc.
You can start from a goal like "I want a TCP packet forwarded in under 5k clock cycles" and keep hacking code till you've met it.
Other software based tracing tools don't tend to be as good, and frequently rely on statistical techniques which hide what is really going on.