English
Language : 

AN910 Datasheet, PDF (44/51 Pages) STMicroelectronics – ST7 AND ST9 PERFORMANCE BENCHMARKING
ST7 AND ST9 PERFORMANCE BENCHMARKING
8.4 CHARACTER SEARCH
Algorithm
The Character search consists in searching a byte in a 40-byte block.
Implementation
The data are also predefined. The algorithm searches the byte “o” in the 40-byte block
“-------------------------------o--------”, where the character 'o' is the 32nd character of the block.
Features stressed As the string search, this program measures the efficiency in data comparison.
8.5 BUBBLE SORT
Algorithm
The Bubble sort benchmark manages the sorting of a one dimension array of 16-bit integers.
Implementation
The test is performed with 10 words and then with 600 words. The array is initialized with 10 or
600 words (16-bit integers) in reverse order.
The algorithm is a classic bubble sort which arranges the 10 words (or the 600 words) in the
ascending order of magnitude.
Note that the routine used is intentionally almost the same for the two values (as though it could
have been optimized for the first value). Few differences may exist, but they do not modify the
way the test is done.
Features stressed
This benchmark demonstrates the efficiency in data comparison and data manipulation but
especially in 16-bit value comparison and 16-bit value manipulation.
8.6 BLOCK MOVE
Algorithm
The Block move test routine aims at transferring a block from a place to another place in memory.
Implementation
This program is tested with a 64-byte block and with a 512-byte block.
Note that the routine used is intentionally almost the same for the two values (as though it could
have been optimized for the first value). Few differences may exist, but they do not modify the
way test is done.
Features stressed It shows the data blocks manipulation ability.
8.7 BLOCK TRANSLATION
Algorithm
The Convert test routine aims at transferring a block from a place to another place in memory.
Implementation
It uses a table to convert the source block into the destination block. The table contains the
translation of the source block elements. This benchmark is useful to convert for example from
an ASCII code to an EBCDIC code...
Features stressed
As the block move test program, it shows the data blocks manipulation ability, but also the
ability to use a lookup table.
8.8 16-BIT INTEGER MULTIPLICATION
Algorithm
The 16-bit integer multiplication program performs a multiplication of two unsigned words (16-bit
integers), giving a 32-bit result.
Implementation
The two operands chosen here are 256, so that the multiplication performed is:
256 x 256 = 65536 (=10000h hexadecimal value)
Features stressed This test measures the computational capability of the microcontroller with 16-bit integers.
44/51