SPRAC71B February 2019 – October 2023
Blocking ensures that an object fits entirely within a page or begins on a page boundary. Data blocking allows the compiler to reduce the number of unnecessary DP loads.
For C28x EABI, the default blocking rules are:
However, data page blocking can result in alignment holes in memory due to aligning data to page boundaries. So, there is a tradeoff between your application's need for code size and speed optimization and its need for data size optimization. You can use the blocked and noblocked data attributes to control blocking on specific variables. See "Data Page (DP) Pointer Load Optimization" and "Variable Attributes" in the TMS320C28x Optimizing C/C++ Compiler User's Guide (SPRU514).