This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Register FP in C64+

Other Parts Discussed in Thread: TMS320C6455

I work in CCS3.3 with tms320c6455. In the register window I see the register FP (frame pointer) according a description it has to associated with A15, but actually this register is a mirrow of SP and B15 registers. How does this register work? Thank you.

 

  • FP is just an alias for A15. SP is just an alias for B15. In the C6000 C calling convention, SP must always represent the stack pointer of the executing program. However, not every function needs FP. For functions which need FP, the compiler copies SP into FP at the start of the function and uses it to access arguments to the function. For functions which do not need FP, A15 is used as a regular register. For more information, see the C6000 Compiler User's Guide.