Download CC5X User`s guide
Transcript
CC5X C Compiler B Knudsen Data Fixed point libraries math16x.h : 16 bit fixed point, 8_8, signed and unsigned math24x.h : 24 bit fixed point 8_16, 16_8, signed and unsigned math32x.h : 32 bit fixed point 8_24, 16_16, 24_8, signed and unsigned The libraries can be used separately or combined. The timing stated is measured in instruction cycles (4*clock) and includes parameter transfer, call, return and assignment of the return value. The min and max timing cycles are approximate only. The enhanced 14 bit core will use fewer cycles and less code. Sign: -: unsigned, S: signed Sign Res=arg1 op arg2 Program math16x.h: S 8_8 = 8_8 8_8 = 8_8 S 8_8 = 8_8 8_8 = 8_8 8_8 8_8 8_8 8_8 Code 47 23 51 35 min 226 214 497 528 aver 263 252 518 558 max 339 326 584 680 min 376 364 850 894 aver 450 437 893 944 max 577 580 1093 1222 * * / / Approx. CYCLES math24x.h: S 16_8 = 16_8 = S 16_8 = 16_8 = 16_8 16_8 16_8 16_8 * * / / 16_8 16_8 16_8 16_8 Code 60 27 68 46 S S - = = = = 8_16 8_16 8_16 8_16 * * / / 8_16 8_16 8_16 8_16 60 28 68 46 354 342 1050 1104 428 415 1116 1188 555 558 1349 1520 math32x.h: S 24_8 = 24_8 = S 24_8 = 24_8 = 24_8 24_8 24_8 24_8 * * / / 24_8 24_8 24_8 24_8 Code 77 35 85 57 min 558 546 1298 1361 aver 722 709 1366 1432 max 983 1026 1761 1929 S S - 16_16= 16_16= 16_16= 16_16= 16_16*16_16 16_16*16_16 16_16/16_16 16_16/16_16 78 36 85 57 561 549 1546 1617 704 690 1650 1733 930 965 2097 2305 S S - 8_24 8_24 8_24 8_24 8_24 8_24 8_24 8_24 77 35 85 57 529 517 1794 1872 672 658 1936 2033 896 933 2433 2680 8_16 8_16 8_16 8_16 = = = = * * / / 8_24 8_24 8_24 8_24 Floating point libraries math16f.h math24f.h math24lb.h math32f.h math32lb.h : : : : : 16 24 24 32 32 bit bit bit bit bit floating floating floating floating floating point point point point point basic math basic math library basic math library 70