6.6 __arm_stc, __arm_stcl, __arm_stc2, __arm_stc2l Intrinsic Function
Inserts the coprocessor store instruction STC
(or one of its
variants). The parameters coproc
,
CRd
, and p
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_stc
__builtin_arm_stcl
__builtin_arm_stc2
__builtin_arm_stc2l
Caveats
None.
Examples
Consider migrating IAR code such
as:
void __arm_stc(__cpid coproc, __cpreg CRd, const void* p);
void __arm_stcl(__cpid coproc, __cpreg CRd, const void* p);
void __arm_stc2(__cpid coproc, __cpreg CRd, const void* p);
void __arm_stc2l(__cpid coproc, __cpreg CRd, const void* p);
to
MPLAB XC codes similar
to:void __builtin_arm_stc(__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_stcl(__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_stc2(__cpid coproc, __cpreg CRd, const void* p);
void __builtin_arm_stc2l(__cpid coproc, __cpreg CRd, const void* p);
Further Information
None.