| 数据搜索系统,热门电子元器件搜索 |
|
AN910 数据表(PDF) 48 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN910 数据表(HTML) 48 Page - STMicroelectronics |
|
48 / 51 page ![]() 48/51 ST7 AND ST9 PERFORMANCE BENCHMARKING 9.1.2 Code size measure Code size is measured with the assembly code. The result is the number of bytes used to code the test routine (in Test Loop part) without the set and reset instructions for the I/O pin. Here is an example of a Test Loop: 0000 C290 test: setb p1.0 ; set I/O pin 0002 7809 mov r0, #srcpointer ; beginning of test routine 0004 7982 mov r1, #destpointer 0006 900200 mov dptr, #200h 0009 7F79 mov r7, #121 000B E6 loop: mov a, @r0 000C 93 movc a, @a+dptr 000D F7 mov @r1, a 000E 08 inc r0 000F 0A inc r2 0010 DFF9 djnz r7, loop ; end of test routine 0012 D290 finish: clr p1.0 ; reset I/O pin 0014 22 ret The code size of this assembly code equals (12h-2h) = 10h = 16d, thus 16 bytes. 9.2 CALCULATION 9.2.1 Execution time and code size ratios From execution time and code size measures, preliminary ratios with ST9+ MCU as reference have been calculated for each test. Using those results, a global execution time ratio and a global code size ratio have been calculated as an average of all ratios. As all the tests could not have been implemented on all MCUs (see <Italic>9.2.2 Memory considerations<Italic end>), one or two different results are presented for each MCU. The first one, available for all the MCUs, has been calculated with the reduced set of tests performed on all the MCUs (Table 14). The second one, only available for some MCUs, has been calculated with the full set of tests (Table 15). Table 14. Reduced set of tests Tests concerned string, char, bubble(10 words), blkmov(64 bytes), convert, 16mul, shright, bitrst Resulting ratio formulas ET = execution time CS = code size sum(ET ratios of reduced set) Global ET ratio for reduced set = number of tests of reduced set sum(CS ratios of reduced set) Global CS ratio for reduced set = number of tests of reduced set |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |