Hi there,
I am using Keil to work on my ADuCM360 project.
Is there a way to force a byte array to be word aligned? such as #pragma pack (2) from Microsoft?
Thanks for your help!
Maybe just:
union { uint8_t bytes[SIZE]; uint16_t dummy; }
I knew how to work around, but I was looking for a more elegant solution instead of patches :)
It can seriously be questioned if compiler-specific alternatives are elegant.
"It can seriously be questioned if compiler-specific alternatives are elegant."
Ugh. I guess English isn't your primary language.
How can anyone with your moniker be taken seriously.
I'm native C/C++, but can survive using a couple of natural languages too.
But it's good that you are able to focus on the relevant stuff.