SPRAC71B February 2019 – October 2023
The following prolog and epilog functions are used as helper functions to reduce code size. Each function performs a typical POP-and-RET function epilog sequence. Code size is reduced by replacing the typical POP-and-RET epilog sequence with a branch to one of these functions. Each function is named after the number of consecutive registers that it restores.
_prolog_c28x_1
_prolog_c28x_2
_prolog_c28x_3
_epilog_c28x_1
_epilog_c28x_2
The --opt_for_space option performs procedural abstraction by replacing common blocks of code, such as prolog and epilog code, with calls to functions that are defined in the run-time library. For this reason, it is necessary to link with the supplied run-time library when using the --opt_for_space option. See "Increasing Code-Size Optimizations" in the TMS320C28x Optimizing C/C++ Compiler User's Guide (SPRU514) for more information. Note that this procedural abstraction does not support the FPU registers.