[PATCH v6 2/5] x86: Add SFrame support for x86 architecture
Florian Weimer
fweimer@redhat.com
Wed Jul 2 13:07:43 GMT 2025
* Adhemerval Zanella Netto:
>>> On most architectures that supports unaligned memory operations it will be
>>> the same, however on architectures that do not the packed generates slight
>>> better code [1] (on sparc the packed code avoids the store/load on the
>>> temporary variable).
>>
>> But this code is specific to x86-64, even conceptually: SPARC has 4-byte
>> instruction alignment.
>
> But if the idea is to make it generic, I think the packed version could
> work better in different architectures. Not sure what do you mean by
> instruction alignment here (afaik the issue is sparc do not support
> unaligned data access).
Exactly. SPARC instructions are aligned. Any similar check would use
aligned accesses.
Thanks,
Florian
More information about the Libc-alpha
mailing list