This intrinsic inserts an instruction of the form
the instruction stream generated by the compiler. It enables you
to load data from memory in your C or C++ code using an
byte stores or
H for halfword stores. If no size
is specified, word stores are performed.
unsigned int __ldrex(volatile void *
points to the address of the data to be loaded from memory. To specify the type of the data to be loaded, cast the parameter to an appropriate pointer type.
Table 15. Access widths supported by the __ldrex intrinsic Instruction Size of data loaded C cast
The compiler does not recognize the
when compiling for a target that does not support the
The compiler generates either a warning or an error in this case.
__ldrex intrinsic does not support
access to doubleword data. The compiler generates an error if you
specify an access width that is not supported.