Part Number: TMS320F28388D
I found that there are differences about code size between CLA and CPU as shown below.
|
code |
code size when loaded in CLA |
code size when loaded in CPU |
|
sVar.sMem1[0].fd=sVar.sMem2[0].fa * sVar.sMem3[0].sData.fb + sVar.sMem3[0].sData.fc |
254 |
42 |
|
sVar.sMem1[0].fd=sVar.sMem1[0].fa * sVar.sMem1[0].fb + sVar.sMem1[0].fc |
66 |
41 |
|
sVar.fd=sVar.fa * sVar.fb + sVar.fc |
20 |
19 |
|
fd = fa * fb + fc; |
20 |
19 |
fa, fb, fc, fd are float variables.
The code size in CLA is much greater than that in CPU, especially when complex struct variable are used.
Why?
Is there any way to reduce the code size in CLA?