Keil Logo

Optimizing

There are several things you may do to optimize your RTX51 Tiny programs.

  • If possible, disable Round-Robin task switching. Round-Robin requires 13 bytes of stack space to store the task context and all registers. This space is not required if task switching is triggered by calling an RTX51 Tiny library routine (like os_wait or os_switch_task).
  • Use the os_wait routine instead of relying on the Round-Robin timeout to switch a task. This improves system reaction time and task response time.
  • Avoid setting the timer tick interrupt rate too fast. Setting the time-out for the timer tick to a small value increases the number of ticks per second but decreases the amount of time available for tasks (because the timer tick interrupt takes 100-200 cycles to execute). Set the time-out value high enough to minimize the effects of the timer tick interrupt handler.
  • To minimize the memory requirements of RTX51 Tiny, number your tasks sequentially beginning with 0.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.