|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
The manual states that the crol, irol, lrol, cror, iror, and lror functions are implemented as intrinsic routines. When I use them, however, the lrol and lror functions are not intrinsic.
This is correct. The crol, cror, irol, and iror functions are implemented intrinsicly (that is, the code is expanded in-line with no function calls). The lror and lrol function are not implemented intrinsicly (these routines are called). The reason for this is that on the 8051, a lror or lrol requires a number of operations (since there is no 32-bit ROL or ROR instruction). Since these routines require so many instructions, it is more efficient to implement these routines as functions instead of in-line code.
These is no way to change this behavior. The manual will be updated to reflect the correct operation of these routines.
Article last edited on: 2006-10-24 13:05:46
Did you find this article helpful? Yes No
How can we improve this article?