I'm using Keil to compile my Cortex-M0 project and find some time the image is including the microlib of __aeabi_uread4(uread4), which costs about 20Bytes memory. I wander to know which kind of code is call this lib?
This function is used to implement an unsigned int read, when alignment of the word is unknown, perhaps as an element of a packed structure. The below may be useful:https://developer.arm.com/documentation/dui0472/j/compiler-coding-practices/comparisons-of-an-unpacked-struct--a---packed-struct--and-a-struct-with-individually---packed-fields--and-of-a---packed-struct-and-a--pragma-packed-struct
You give me an idea about this lib. Thanks.
View all questions in Arm Compilers forum