|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
How are the dual data pointers of the several 8051 derivatives used by the C compiler? What is the performance advantage?
In C51, only the library routines use the dual data pointers. The dual data pointers are not used by the C compiler to optimize your program code.
The following library routines use dual data pointers when copying or comparing 2 memory blocks:
There is a distinct performance advantage in using dual data pointers. As an example, we profiled the memcpy function. This function shows the best performance increase you can expect. The following table gives the performance increase by using dual data pointers on the Dallas Semiconductor 320. This is compared to the same speed 8051 CPU with only 1 data pointer.
memcpy 1 Byte 2.4x memcpy 10 Bytes 3.3x memcpy 100 Bytes 3.8x memcpy 1000 Bytes 3.9x
Note that the Dallas part already runs 3 times faster than a stardard 8051.
Article last edited on: 2000-06-16 00:00:00
Did you find this article helpful? Yes No
How can we improve this article?