[cfarm-users] Is there any computer with armhf architecture on cfarm? - thank you
Martin Guy
martinwguy at gmail.com
Tue Jul 8 17:35:33 CEST 2025
On 07/07/25 18:09, Jeffrey Walton wrote:
>> I has been traced defines and it seems that main problem was unalligned access.
>> Ability to access unalligned variables is signelized by this macro:
>> __ARM_FEATURE_UNALIGNED
>>
>> #if !defined(NATIVE_ACCESS) && !defined(HI_ENDIAN) && !defined(__ARM_FEATURE_UNALIGNED)
>> #define NATIVE_ACCESS
>> #endif
>>
>> It is all I need.
> You should ignore __ARM_FEATURE_UNALIGNED, and write portable code.
Depending on the arch, unaligned accesses on ARM sometimes give
(*(p&~3))>>>(*(p&3)), that is, the word at the aligned address rolled
by the difference, depending on /proc settings.
Better to avoid, yes.
M
More information about the cfarm-users
mailing list