13.07.2015 Views

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Run–time Environment 7–9_compatibleFamilyMemberParameterRegistersRegisters to bepreserved by calleeReturn RegisterDSP5600xNone (all on stack)When returning astruct/union, Apoints to the addressto store it.B1, B0, X1, X0, Y1,Y0, R0..R5, R7(R7 is replaced byR6 if R7 is used foruser stack pointer)A, except whenreturning astruct/union; inthat case A pointsto the addresswhere it is storedDSP563xxDSP566xxA,B (rest on stack)When returning astruct/union, R7points to the addressto store it.Y1, Y0, R2/N2,R3/N3, R7/N7(R7/N7 are replacedby R6/N6 if R7 isused for user stackpointer)A, except whenreturning astruct/union; inthat case R7points to theaddress where it isstored_callee_save_callee_save#ifndef _CALLEE_SAVE#define _who_saves#else#define _who_saves _callee_save#endifint i;_who_saves void __inc(void){i++;}• • • • • • • •

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!