6.2 __arm_ldc, __arm_lcd2, __arm_ldcl, __arm_ldc2l Intrinsic Function
Inserts the coprocessor load instruction LDC (or one of its variants), which
means that a value will be loaded into a coprocessor register. The
parameters coproc
,and CRd
will be encoded in the instruction and must therefore be
constants.
These intrinsic functions are defined according to the Arm C Language Extensions (ACLE).
Suggested Replacement
__builtin_arm_ldc,
__builtin_arm_ldc2
Caveats
None.
Examples
Consider migrating IAR code such
as:
void __arm_ldc(__cpid coproc, __cpreg CRd, const void* p);
void __arm_ldcl(__cpid coproc, __cpreg CRd, const void* p);
void __arm_ldc2(__cpid coproc, __cpreg CRd, const void* p);
void __arm_ldc2l(__cpid coproc, __cpreg CRd, const void* p);
to
MPLAB XC codes similar
to:void __builtin_arm_ldc (__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_ldcl (__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_ldc2 (__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_ldc2l (__cpid coproc, __cpreg CRd, const void* p);
Further Information
None.