
www.ti.com
TMS320C55x Rules and Guidelines
Rule 32
All C55x algorithms must access all static and global data as far data; also, the algorithms should be instantiable in a large memory model.
5.5.3 Program Models
Only the large memory model is supported for the program memory. So there are no special program memory requirements for this processor. Just to reemphasize the point, all the program code must be completely relocatable and must not necessarily require placement in
Rule 33
C55x algorithms must never assume placement in
The above rule can be interpreted as to the algorithm code must not have any assumptions on the timing information to guarantee the functionality.
5.5.4 Relocatability
Some of the C55X devices have a constraint that the data accessed with the
Rule 34
All C55x algorithms that access data by
∙the instance number of the IALG_MemRec structure that is accessed by the
∙the
Example 1
Int algAlloc(IALG_Params *algParams, IALG_Fxns **p,
IALG_MemRec memTab[])
{
EncoderParams *params = (EncoderParams *)algParams; If (params == NULL) {
params = &ENCODERATTRS;
}
memTab[0].size = sizeof (EncoderObj);
...
memTab[1].size =
...
memTab[3].size =
...
return (2);
}
Suppose, in the above example, the memTab[1] and memTab[3] are accessed by the
Number of memTab blocks that are accessed by | Block numbers |
2 | 1,3 |
SPRU352G | 53 |